Changeset 846 for trunk/src/3rdparty/webkit/WebKit.pri
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/3rdparty/webkit/WebKit.pri
r561 r846 1 1 # Include file to make it easy to include WebKit into Qt projects 2 2 3 # Detect that we are building as a standalone package by the presence of 4 # either the generated files directory or as part of the Qt package through 5 # QTDIR_build 6 CONFIG(QTDIR_build): CONFIG += standalone_package 7 else:exists($$PWD/WebCore/generated): CONFIG += standalone_package 3 8 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 } 9 CONFIG += depend_includepath 11 10 12 11 DEFINES += BUILDING_QT__=1 … … 18 17 } else { 19 18 QMAKE_LIBDIR = $$OUTPUT_DIR/lib $$QMAKE_LIBDIR 19 QTWEBKITLIBNAME = QtWebKit 20 20 mac:!static:contains(QT_CONFIG, qt_framework):!CONFIG(webkit_no_framework) { 21 LIBS += -framework QtWebKit21 LIBS += -framework $$QTWEBKITLIBNAME 22 22 QMAKE_FRAMEWORKPATH = $$OUTPUT_DIR/lib $$QMAKE_FRAMEWORKPATH 23 23 } else { 24 24 win32-*|wince* { 25 LIBS += -lQtWebKit$${QT_MAJOR_VERSION} 25 !CONFIG(release, debug|release):build_pass: QTWEBKITLIBNAME = $${QTWEBKITLIBNAME}d 26 QTWEBKITLIBNAME = $${QTWEBKITLIBNAME}$${QT_MAJOR_VERSION} 27 win32-g++*: LIBS += -l$$QTWEBKITLIBNAME 28 else: LIBS += $${QTWEBKITLIBNAME}.lib 26 29 } else { 27 30 LIBS += -lQtWebKit 28 31 symbian { 29 32 TARGET.EPOCSTACKSIZE = 0x14000 // 80 kB 30 TARGET.EPOCHEAPSIZE = 0x20000 0x 2000000 // Min 128kB, Max 32MB33 TARGET.EPOCHEAPSIZE = 0x20000 0x6000000 // Min 128kB, Max 32MB 31 34 } 32 35 } … … 35 38 DEPENDPATH += $$PWD/WebKit/qt/Api 36 39 } 40 greaterThan(QT_MINOR_VERSION, 5):DEFINES += WTF_USE_ACCELERATED_COMPOSITING 37 41 38 42 !mac:!unix|symbian { … … 45 49 46 50 BASE_DIR = $$PWD 47 INCLUDEPATH += $$PWD/WebKit/qt/Api 51 52 symbian { 53 INCLUDEPATH += $$PWD/include/QtWebKit 54 } else { 55 INCLUDEPATH += $$OUTPUT_DIR/include/QtWebKit 56 } 48 57 49 58 CONFIG -= warn_on 50 *-g++*:QMAKE_CXXFLAGS += -Wreturn-type -fno-strict-aliasing 51 #QMAKE_CXXFLAGS += -Wall -Wno-undef -Wno-unused-parameter 59 *-g++*:QMAKE_CXXFLAGS += -Wall -Wreturn-type -fno-strict-aliasing -Wcast-align -Wchar-subscripts -Wformat-security -Wreturn-type -Wno-unused-parameter -Wno-sign-compare -Wno-switch -Wno-switch-enum -Wundef -Wmissing-noreturn -Winit-self 52 60 53 61 # Enable GNU compiler extensions to the ARM compiler for all Qt ports using RVCT … … 55 63 RVCT_COMMON_CFLAGS = --gnu --diag_suppress 68,111,177,368,830,1293 56 64 RVCT_COMMON_CXXFLAGS = $$RVCT_COMMON_CFLAGS --no_parse_templates 57 DEFINES *= QT_NO_UITOOLS58 65 } 59 66 … … 67 74 } 68 75 76 symbian|maemo5: DEFINES *= QT_NO_UITOOLS 77 69 78 contains(DEFINES, QT_NO_UITOOLS): CONFIG -= uitools 70 79 71 80 # Disable a few warnings on Windows. The warnings are also 72 81 # disabled in WebKitLibraries/win/tools/vsprops/common.vsprops 73 win32-msvc* : QMAKE_CXXFLAGS += -wd4291 -wd4344 -wd4396 -wd4503 -wd4800 -wd4819 -wd499682 win32-msvc*|wince*: QMAKE_CXXFLAGS += -wd4291 -wd4344 -wd4396 -wd4503 -wd4800 -wd4819 -wd4996 74 83 75 #76 # For builds inside Qt we interpret the output rule and the input of each extra compiler manually77 # and add the resulting sources to the SOURCES variable, because the build inside Qt contains already78 # all the generated files. We do not need to generate any extra compiler rules in that case.79 #80 # In addition this function adds a new target called 'generated_files' that allows manually calling81 # all the extra compilers to generate all the necessary files for the build using 'make generated_files'82 #83 defineTest(addExtraCompiler) {84 CONFIG(QTDIR_build) {85 outputRule = $$eval($${1}.output)86 outVariable = $$eval($${1}.variable_out)87 !isEqual(outVariable,GENERATED_SOURCES):return(true)88 89 input = $$eval($${1}.input)90 input = $$eval($$input)91 92 for(file,input) {93 base = $$basename(file)94 base ~= s/\..+//95 newfile=$$replace(outputRule,\\$\\{QMAKE_FILE_BASE\\},$$base)96 SOURCES += $$newfile97 }98 99 export(SOURCES)100 } else {101 QMAKE_EXTRA_COMPILERS += $$1102 generated_files.depends += compiler_$${1}_make_all103 export(QMAKE_EXTRA_COMPILERS)104 export(generated_files.depends)105 }106 return(true)107 }108 109 defineTest(addExtraCompilerWithHeader) {110 addExtraCompiler($$1)111 112 eval(headerFile = $${2})113 isEmpty(headerFile) {114 eval($${1}_header.output = $$eval($${1}.output))115 eval($${1}_header.output ~= s/\.cpp/.h/)116 eval($${1}_header.output ~= s/\.c/.h/)117 } else {118 eval($${1}_header.output = $$headerFile)119 }120 121 eval($${1}_header.input = $$eval($${1}.input))122 eval($${1}_header.commands = @echo -n '')123 eval($${1}_header.depends = compiler_$${1}_make_all)124 eval($${1}_header.variable_out = GENERATED_FILES)125 126 export($${1}_header.output)127 export($${1}_header.input)128 export($${1}_header.commands)129 export($${1}_header.depends)130 export($${1}_header.variable_out)131 132 !CONFIG(QTDIR_build): QMAKE_EXTRA_COMPILERS += $${1}_header133 134 export(QMAKE_EXTRA_COMPILERS)135 export(generated_files.depends)136 export(SOURCES)137 138 return(true)139 }140
Note:
See TracChangeset
for help on using the changeset viewer.