Home | History | Annotate | Download | only in qt
      1 TEMPLATE = lib
      2 
      3 isEmpty(OUTPUT_DIR): OUTPUT_DIR = ../../../..
      4 
      5 CONFIG(standalone_package) {
      6     isEmpty(WC_GENERATED_SOURCES_DIR):WC_GENERATED_SOURCES_DIR = $$PWD/../../../../Source/WebCore/generated
      7 } else {
      8     isEmpty(WC_GENERATED_SOURCES_DIR):WC_GENERATED_SOURCES_DIR = ../../../../Source/WebCore/generated
      9 }
     10 
     11 GENERATED_SOURCES_DIR = ../../generated
     12 
     13 SOURCES += \
     14     ../InjectedBundle.cpp \
     15     ../InjectedBundle.h \
     16     ../InjectedBundleMain.cpp \
     17     ../InjectedBundlePage.cpp \
     18     ../InjectedBundlePage.h \
     19     ../EventSendingController.cpp \
     20     ../EventSendingController.h \
     21     ../GCController.cpp \
     22     ../GCController.h \
     23     ../LayoutTestController.cpp \
     24     ../LayoutTestController.h \
     25     ../Bindings/JSWrapper.cpp \
     26     ActivateFontsQt.cpp \
     27     InjectedBundleQt.cpp \
     28     LayoutTestControllerQt.cpp \
     29     $$GENERATED_SOURCES_DIR/JSEventSendingController.cpp \
     30     $$GENERATED_SOURCES_DIR/JSGCController.cpp \
     31     $$GENERATED_SOURCES_DIR/JSLayoutTestController.cpp \
     32 
     33 HEADERS += \
     34     ../ActivateFonts.h \
     35     ../EventSendingController.h \
     36     ../GCController.h \
     37     ../InjectedBundle.h \
     38     ../InjectedBundlePage.h \
     39     ../LayoutTestController.h \
     40 
     41 !CONFIG(release, debug|release) {
     42     OBJECTS_DIR = obj/debug
     43 } else { # Release
     44     OBJECTS_DIR = obj/release
     45 }
     46 
     47 include(../../../../Source/WebKit.pri)
     48 include(../../../../Source/JavaScriptCore/JavaScriptCore.pri)
     49 prependJavaScriptCoreLib(../../../JavaScriptCore)
     50 include(../../../../Source/WebKit2/WebKit2.pri)
     51 prependWebKit2Lib(../../../WebKit2)
     52 
     53 INCLUDEPATH = \
     54     $$PWD \
     55     $$PWD/.. \
     56     $$PWD/../.. \
     57     $$PWD/../Bindings \
     58     $$PWD/../../../../Source \
     59     $$PWD/../../../../Source/JavaScriptCore \
     60     $$PWD/../../../../Source/JavaScriptCore/ForwardingHeaders \
     61     $$PWD/../../../../Source/JavaScriptCore/wtf/unicode \
     62     $$PWD/../../../../Source/WebCore \
     63     $$PWD/../../../../Source/WebCore/platform/text \
     64     $$PWD/../../../../Source/WebKit2 \
     65     $$PWD/../../../../Source/WebKit2/Shared \
     66     $$OUTPUT_DIR/include/QtWebKit \
     67     $$OUTPUT_DIR/include \
     68     $$GENERATED_SOURCES_DIR \
     69     $$WC_GENERATED_SOURCES_DIR
     70 
     71 
     72 PREFIX_HEADER = $$PWD/../../WebKitTestRunnerPrefix.h
     73 *-g++*:QMAKE_CXXFLAGS += "-include $$PREFIX_HEADER"
     74 
     75 unix:!mac:!symbian:!embedded {
     76     CONFIG += link_pkgconfig
     77     PKGCONFIG += fontconfig
     78 }
     79 
     80 TARGET = WTRInjectedBundle
     81 DESTDIR = $$OUTPUT_DIR/lib
     82 !CONFIG(standalone_package): CONFIG -= app_bundle
     83 linux-* {
     84     QMAKE_LFLAGS += -Wl,--no-undefined
     85 }
     86