1 # JavaScriptCore - qmake build info
2 CONFIG += building-libs
3 include($$PWD/../WebKit.pri)
7 TARGET = JavaScriptCore
9 CONFIG += depend_includepath
11 contains(QT_CONFIG, embedded):CONFIG += embedded
14 GENERATED_SOURCES_DIR = $$PWD/generated
15 OLDDESTDIR = $$DESTDIR
16 include($$QT_SOURCE_TREE/src/qbase.pri)
18 DESTDIR = $$OLDDESTDIR
19 PRECOMPILED_HEADER = $$PWD/../WebKit/qt/WebKit_pch.h
23 isEmpty(GENERATED_SOURCES_DIR):GENERATED_SOURCES_DIR = tmp
24 GENERATED_SOURCES_DIR_SLASH = $$GENERATED_SOURCES_DIR/
25 win32-*: GENERATED_SOURCES_DIR_SLASH ~= s|/|\|
27 INCLUDEPATH += $$GENERATED_SOURCES_DIR
29 !CONFIG(QTDIR_build) {
33 include($$OUTPUT_DIR/config.pri)
36 *-g++*:QMAKE_CXXFLAGS += -Wreturn-type -fno-strict-aliasing
37 #QMAKE_CXXFLAGS += -Wall -Wno-undef -Wno-unused-parameter
39 CONFIG(release):!CONFIG(QTDIR_build) {
40 contains(QT_CONFIG, reduce_exports):CONFIG += hide_symbols
41 unix:contains(QT_CONFIG, reduce_relocations):CONFIG += bsymbolic_functions
44 linux-*: DEFINES += HAVE_STDINT_H
45 freebsd-*: DEFINES += HAVE_PTHREAD_NP_H
47 DEFINES += BUILD_WEBKIT
49 win32-*: DEFINES += _HAS_TR1=0
51 # Pick up 3rdparty libraries from INCLUDE/LIB just like with MSVC
53 TMPPATH = $$quote($$(INCLUDE))
54 QMAKE_INCDIR_POST += $$split(TMPPATH,";")
55 TMPPATH = $$quote($$(LIB))
56 QMAKE_LIBDIR_POST += $$split(TMPPATH,";")
59 DEFINES += WTF_USE_JAVASCRIPTCORE_BINDINGS=1
61 DEFINES += WTF_CHANGES=1
63 include(JavaScriptCore.pri)
65 QMAKE_EXTRA_TARGETS += generated_files
67 qt-port: lessThan(QT_MINOR_VERSION, 4) {
68 DEFINES += QT_BEGIN_NAMESPACE="" QT_END_NAMESPACE=""
71 *-g++*:QMAKE_CXXFLAGS_RELEASE -= -O2
72 *-g++*:QMAKE_CXXFLAGS_RELEASE += -O3