[Qt] Build files for the WTR's InjectedBundle
[WebKit-https.git] / WebKitTools / WebKitTestRunner / InjectedBundle / qt / InjectedBundle.pro
1 TEMPLATE = lib
2
3 isEmpty(OUTPUT_DIR): OUTPUT_DIR = ../../../..
4
5 SOURCES += \
6     ../InjectedBundle.cpp \
7     ../InjectedBundle.h \
8     ../InjectedBundleMain.cpp \
9     ../InjectedBundlePage.cpp \
10     ../InjectedBundlePage.h \
11     ../EventSendingController.cpp \
12     ../EventSendingController.h \
13     ../GCController.cpp \
14     ../GCController.h \
15     ../LayoutTestController.cpp \
16     ../LayoutTestController.h \
17     ../Bindings/JSWrapper.cpp \
18     ActivateFontsQt.cpp \
19     LayoutTestControllerQt.cpp \
20     $$OUTPUT_DIR/WebKitTools/WebKitTestRunner/generated/JSEventSendingController.cpp \
21     $$OUTPUT_DIR/WebKitTools/WebKitTestRunner/generated/JSGCController.cpp \
22     $$OUTPUT_DIR/WebKitTools/WebKitTestRunner/generated/JSLayoutTestController.cpp \
23
24 HEADERS += \
25     ../ActivateFonts.h \
26     ../EventSendingController.h \
27     ../GCController.h \
28     ../InjectedBundle.h \
29     ../InjectedBundlePage.h \
30     ../LayoutTestController.h \
31
32 !CONFIG(release, debug|release) {
33     OBJECTS_DIR = obj/debug
34 } else { # Release
35     OBJECTS_DIR = obj/release
36 }
37
38 include(../../../../WebKit.pri)
39 include(../../../../JavaScriptCore/JavaScriptCore.pri)
40 addJavaScriptCoreLib(../../../../JavaScriptCore)
41 include(../../../../WebKit2/WebKit2.pri)
42 addWebKit2Lib(../../../../WebKit2)
43
44 INCLUDEPATH += \
45     $$PWD \
46     $$PWD/.. \
47     $$PWD/../.. \
48     $$PWD/../Bindings \
49     $$PWD/../../../../JavaScriptCore \
50     $$PWD/../../../../JavaScriptCore/wtf \
51     $$PWD/../../../../WebKit2 \
52     $$PWD/../../../../WebKit2/Shared \
53     $$OUTPUT_DIR/WebKitTools/WebKitTestRunner/generated
54
55 INCLUDEPATH += \
56     $$OUTPUT_DIR/include \
57     $$OUTPUT_DIR/WebCore/generated
58
59 PREFIX_HEADER = $$PWD/../../WebKitTestRunnerPrefix.h
60 QMAKE_CXXFLAGS += "-include $$PREFIX_HEADER"
61
62 unix:!mac {
63     CONFIG += link_pkgconfig
64     PKGCONFIG += fontconfig
65 }
66
67 TARGET = WTRInjectedBundle
68 DESTDIR = $$OUTPUT_DIR/lib
69 !CONFIG(standalone_package): CONFIG -= app_bundle