source: trunk/src/3rdparty/webkit/WebKit.pri@ 134

Last change on this file since 134 was 2, checked in by Dmitry A. Kuminov, 16 years ago

Initially imported qt-all-opensource-src-4.5.1 from Trolltech.

File size: 2.7 KB
Line 
1# Include file to make it easy to include WebKit into Qt projects
2
3
4isEmpty(OUTPUT_DIR) {
5 CONFIG(release):OUTPUT_DIR=$$PWD/WebKitBuild/Release
6 CONFIG(debug):OUTPUT_DIR=$$PWD/WebKitBuild/Debug
7}
8
9DEFINES += BUILDING_QT__=1
10building-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
22DEFINES += USE_SYSTEM_MALLOC
23CONFIG(release) {
24 DEFINES += NDEBUG
25}
26
27BASE_DIR = $$PWD
28INCLUDEPATH += $$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