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}$${QMAKE_DIR_SEP}
26 INCLUDEPATH += $$GENERATED_SOURCES_DIR
28 !CONFIG(QTDIR_build) {
29 CONFIG(debug, debug|release) {
30 OBJECTS_DIR = obj/debug
32 OBJECTS_DIR = obj/release
36 include($$OUTPUT_DIR/config.pri)
39 *-g++*:QMAKE_CXXFLAGS += -Wreturn-type -fno-strict-aliasing
40 #QMAKE_CXXFLAGS += -Wall -Wno-undef -Wno-unused-parameter
42 CONFIG(release):!CONFIG(QTDIR_build) {
43 contains(QT_CONFIG, reduce_exports):CONFIG += hide_symbols
44 unix:contains(QT_CONFIG, reduce_relocations):CONFIG += bsymbolic_functions
47 linux-*: DEFINES += HAVE_STDINT_H
48 freebsd-*: DEFINES += HAVE_PTHREAD_NP_H
50 DEFINES += BUILD_WEBKIT
52 win32-*: DEFINES += _HAS_TR1=0
54 # Pick up 3rdparty libraries from INCLUDE/LIB just like with MSVC
56 TMPPATH = $$quote($$(INCLUDE))
57 QMAKE_INCDIR_POST += $$split(TMPPATH,";")
58 TMPPATH = $$quote($$(LIB))
59 QMAKE_LIBDIR_POST += $$split(TMPPATH,";")
62 DEFINES += WTF_USE_JAVASCRIPTCORE_BINDINGS=1
64 DEFINES += WTF_CHANGES=1
66 include(JavaScriptCore.pri)
68 QMAKE_EXTRA_TARGETS += generated_files
70 lessThan(QT_MINOR_VERSION, 4) {
71 DEFINES += QT_BEGIN_NAMESPACE="" QT_END_NAMESPACE=""
74 *-g++*:QMAKE_CXXFLAGS_RELEASE -= -O2
75 *-g++*:QMAKE_CXXFLAGS_RELEASE += -O3