2010-09-08 Adam Barth <abarth@webkit.org>
[WebKit-https.git] / WebKit.pro
index f7d9bff..db102c4 100644 (file)
@@ -1,11 +1,44 @@
 TEMPLATE = subdirs
 CONFIG += ordered
 
-SUBDIRS += \
-        WebCore \
-        JavaScriptCore/jsc.pro \
-        WebKit/qt/QtLauncher \
-        WebKit/qt/tests
+include(WebKit.pri)
 
-!win32: SUBDIRS += WebKitTools/DumpRenderTree/qt/DumpRenderTree.pro
+SUBDIRS += JavaScriptCore
+webkit2 {
+    SUBDIRS += WebKit2
+}
+SUBDIRS += WebCore
 
+# If the source exists, built it
+exists($$PWD/WebKitTools/QtTestBrowser): SUBDIRS += WebKitTools/QtTestBrowser
+contains(QT_CONFIG, declarative) {
+    exists($$PWD/WebKit/qt/declarative): SUBDIRS += WebKit/qt/declarative
+}
+exists($$PWD/JavaScriptCore/jsc.pro): SUBDIRS += JavaScriptCore/jsc.pro
+exists($$PWD/WebKit/qt/tests): SUBDIRS += WebKit/qt/tests
+exists($$PWD/WebKitTools/DumpRenderTree/qt/DumpRenderTree.pro): SUBDIRS += WebKitTools/DumpRenderTree/qt/DumpRenderTree.pro
+exists($$PWD/WebKitTools/DumpRenderTree/qt/ImageDiff.pro): SUBDIRS += WebKitTools/DumpRenderTree/qt/ImageDiff.pro
+
+!win32:!symbian {
+    exists($$PWD/WebKitTools/DumpRenderTree/qt/TestNetscapePlugin/TestNetscapePlugin.pro): SUBDIRS += WebKitTools/DumpRenderTree/qt/TestNetscapePlugin/TestNetscapePlugin.pro
+}
+
+build-qtscript {
+    SUBDIRS += \
+        JavaScriptCore/qt/api/QtScript.pro \
+        JavaScriptCore/qt/tests \
+        JavaScriptCore/qt/benchmarks
+}
+
+webkit2 {
+    exists($$PWD/WebKit2/WebProcess.pro): SUBDIRS += WebKit2/WebProcess.pro
+    exists($$PWD/WebKitTools/MiniBrowser/qt/MiniBrowser.pro): SUBDIRS += WebKitTools/MiniBrowser/qt/MiniBrowser.pro
+}
+
+symbian {
+    # Forward the install target to WebCore. A workaround since INSTALLS is not implemented for symbian
+    install.commands = $(MAKE) -C WebCore install
+    QMAKE_EXTRA_TARGETS += install
+}
+
+include(WebKit/qt/docs/docs.pri)