1 | # Include file to make it easy to include WebKit into Qt projects
|
---|
2 |
|
---|
3 |
|
---|
4 | isEmpty(OUTPUT_DIR) {
|
---|
5 | CONFIG(release):OUTPUT_DIR=$$PWD/WebKitBuild/Release
|
---|
6 | CONFIG(debug):OUTPUT_DIR=$$PWD/WebKitBuild/Debug
|
---|
7 | }
|
---|
8 |
|
---|
9 | DEFINES += BUILDING_QT__=1
|
---|
10 | building-libs {
|
---|
11 | win32-msvc*: INCLUDEPATH += $$PWD/JavaScriptCore/os-win32
|
---|
12 | } else {
|
---|
13 | CONFIG(QTDIR_build) {
|
---|
14 | QT += webkit
|
---|
15 | } else {
|
---|
16 | QMAKE_LIBDIR = $$OUTPUT_DIR/lib $$QMAKE_LIBDIR
|
---|
17 | LIBS += -lQtWebKit
|
---|
18 | }
|
---|
19 | DEPENDPATH += $$PWD/WebKit/qt/Api
|
---|
20 | }
|
---|
21 |
|
---|
22 | DEFINES += USE_SYSTEM_MALLOC
|
---|
23 | CONFIG(release) {
|
---|
24 | DEFINES += NDEBUG
|
---|
25 | }
|
---|
26 |
|
---|
27 | BASE_DIR = $$PWD
|
---|
28 | INCLUDEPATH += $$PWD/WebKit/qt/Api
|
---|
29 |
|
---|
30 | #
|
---|
31 | # For builds inside Qt we interpret the output rule and the input of each extra compiler manually
|
---|
32 | # and add the resulting sources to the SOURCES variable, because the build inside Qt contains already
|
---|
33 | # all the generated files. We do not need to generate any extra compiler rules in that case.
|
---|
34 | #
|
---|
35 | # In addition this function adds a new target called 'generated_files' that allows manually calling
|
---|
|
---|