| 1 | # Include file to make it easy to include WebKit into Qt projects
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 | isEmpty(OUTPUT_DIR) {
|
|---|
| 5 | CONFIG(debug, debug|release) {
|
|---|
| 6 | OUTPUT_DIR=$$PWD/WebKitBuild/Debug
|
|---|
| 7 | } else { # Release
|
|---|
| 8 | OUTPUT_DIR=$$PWD/WebKitBuild/Release
|
|---|
| 9 | }
|
|---|
| 10 | }
|
|---|
| 11 |
|
|---|
| 12 | DEFINES += BUILDING_QT__=1
|
|---|
| 13 | building-libs {
|
|---|
| 14 | win32-msvc*|win32-icc: INCLUDEPATH += $$PWD/JavaScriptCore/os-win32
|
|---|
| 15 | } else {
|
|---|
| 16 | CONFIG(QTDIR_build) {
|
|---|
| 17 | QT += webkit
|
|---|
| 18 | } else {
|
|---|
| 19 | QMAKE_LIBDIR = $$OUTPUT_DIR/lib $$QMAKE_LIBDIR
|
|---|
| 20 | mac:!static:contains(QT_CONFIG, qt_framework):!CONFIG(webkit_no_framework) {
|
|---|
| 21 | LIBS += -framework QtWebKit
|
|---|
| 22 | QMAKE_FRAMEWORKPATH = $$OUTPUT_DIR/lib $$QMAKE_FRAMEWORKPATH
|
|---|
| 23 | } else {
|
|---|
| 24 | win32-*|wince* {
|
|---|
| 25 | LIBS += -lQtWebKit$${QT_MAJOR_VERSION}
|
|---|
| 26 | } else {
|
|---|
| 27 | LIBS += -lQtWebKit
|
|---|
| 28 | }
|
|---|
| 29 | }
|
|---|
| 30 | }
|
|---|
| 31 | DEPENDPATH += $$PWD/WebKit/qt/Api
|
|---|
| 32 | }
|
|---|
| 33 |
|
|---|
| 34 | !mac:!unix|symbian {
|
|---|
| 35 | DEFINES += USE_SYSTEM_MALLOC
|
|---|
| 36 | }
|
|---|
| 37 |
|
|---|
| 38 | CONFIG(release, debug|release) {
|
|---|
| 39 | DEFINES += NDEBUG
|
|---|
| 40 | }
|
|---|
| 41 |
|
|---|
| 42 | BASE_DIR = $$PWD
|
|---|
| 43 | INCLUDEPATH += $$PWD/WebKit/qt/Api
|
|---|
| 44 |
|
|---|
| 45 | CONFIG -= warn_on
|
|---|
| 46 | *-g++*:QMAKE_CXXFLAGS += -Wreturn-type -fno-strict-aliasing
|
|---|
| 47 | #QMAKE_CXXFLAGS += -Wall -Wno-undef -Wno-unused-parameter
|
|---|
| 48 |
|
|---|
| 49 | # Enable GNU compiler extensions to the ARM compiler for all Qt ports using RVCT
|
|---|
| 50 | symbian|*-armcc {
|
|---|
| 51 | RVCT_COMMON_CFLAGS = --gnu --diag_suppress 68,111,177,368,830,1293
|
|---|
| 52 | RVCT_COMMON_CXXFLAGS = $$RVCT_COMMON_CFLAGS --no_parse_templates
|
|---|
| 53 | DEFINES *= QT_NO_UITOOLS
|
|---|
| 54 | }
|
|---|
| 55 |
|
|---|
| 56 | *-armcc {
|
|---|
| 57 | QMAKE_CFLAGS += $$RVCT_COMMON_CFLAGS
|
|---|
| 58 | QMAKE_CXXFLAGS += $$RVCT_COMMON_CXXFLAGS
|
|---|
| 59 | }
|
|---|
| 60 |
|
|---|
| 61 | symbian {
|
|---|
| 62 | QMAKE_CXXFLAGS.ARMCC += $$RVCT_COMMON_CXXFLAGS
|
|---|
| 63 | }
|
|---|
| 64 |
|
|---|
| 65 | contains(DEFINES, QT_NO_UITOOLS): CONFIG -= uitools
|
|---|
| 66 |
|
|---|
| 67 | # Disable a few warnings on Windows. The warnings are also
|
|---|
| 68 | # disabled in WebKitLibraries/win/tools/vsprops/common.vsprops
|
|---|
| 69 | win32-msvc*: QMAKE_CXXFLAGS += -wd4291 -wd4344 -wd4503 -wd4800 -wd4819 -wd4996
|
|---|
| 70 |
|
|---|
| 71 | #
|
|---|
| 72 | # For builds inside Qt we interpret the output rule and the input of each extra compiler manually
|
|---|
| 73 | # and add the resulting sources to the SOURCES variable, because the build inside Qt contains already
|
|---|
| 74 | # all the generated files. We do not need to generate any extra compiler rules in that case.
|
|---|
|
|---|