Fix the build: WebKitQt is now called QtWebKit
[WebKit-https.git] / JavaScriptCore / kjs / testkjs.pro
index 246654ea81c2e85efd17b8f4ce5d1140879bf543..a2501e88ce447a9e2ba533095ff45d9aa37a0f9c 100644 (file)
@@ -4,11 +4,16 @@ DESTDIR = ..
 SOURCES = testkjs.cpp
 QT -= gui
 DEFINES -= KJS_IDENTIFIER_HIDE_GLOBALS 
-DEFINES += BUILDING_QT__
-INCLUDEPATH += $$PWD $$PWD/kjs $$PWD/bindings $$PWD/bindings/c $$PWD/wtf
-LIBS += -L$$OUTPUT_DIR/lib -lJavaScriptCore
+INCLUDEPATH += $$PWD/.. $$PWD $$PWD/../bindings $$PWD/../bindings/c $$PWD/../wtf
+qt-port:DEFINES += BUILDING_QT__
+qt-port:LIBS += -L$$OUTPUT_DIR/lib -lQtWebKit
+gdk-port {
+    QMAKE_CXXFLAGS += $$system(icu-config --cppflags)
+    LIBS += $$system(icu-config --ldflags)
+}
 QMAKE_RPATHDIR += $$OUTPUT_DIR/lib
 
 isEmpty(OUTPUT_DIR):OUTPUT_DIR=$$PWD/../..
 include($$OUTPUT_DIR/config.pri)
 
+include($$PWD/../JavaScriptCore.pri)