]> git.saurik.com Git - apple/javascriptcore.git/blob - JavaScriptCore.pro
28f0e6bc45e22c64d0bcda7f4dd1f95e0a89053e
[apple/javascriptcore.git] / JavaScriptCore.pro
1 # JavaScriptCore - qmake build info
2 CONFIG += building-libs
3 include($$PWD/../WebKit.pri)
4
5 TEMPLATE = lib
6 CONFIG += staticlib
7 TARGET = JavaScriptCore
8
9 CONFIG += depend_includepath
10
11 contains(QT_CONFIG, embedded):CONFIG += embedded
12
13 CONFIG(QTDIR_build) {
14 GENERATED_SOURCES_DIR = $$PWD/generated
15 OLDDESTDIR = $$DESTDIR
16 include($$QT_SOURCE_TREE/src/qbase.pri)
17 INSTALLS =
18 DESTDIR = $$OLDDESTDIR
19 PRECOMPILED_HEADER = $$PWD/../WebKit/qt/WebKit_pch.h
20 DEFINES *= NDEBUG
21 }
22
23 isEmpty(GENERATED_SOURCES_DIR):GENERATED_SOURCES_DIR = tmp
24 GENERATED_SOURCES_DIR_SLASH = $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}
25
26 INCLUDEPATH += $$GENERATED_SOURCES_DIR
27
28 !CONFIG(QTDIR_build) {
29 CONFIG(debug, debug|release) {
30 OBJECTS_DIR = obj/debug
31 } else { # Release
32 OBJECTS_DIR = obj/release
33 }
34 }
35
36 include($$OUTPUT_DIR/config.pri)
37
38 CONFIG -= warn_on
39 *-g++*:QMAKE_CXXFLAGS += -Wreturn-type -fno-strict-aliasing
40 #QMAKE_CXXFLAGS += -Wall -Wno-undef -Wno-unused-parameter
41
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
45 }
46
47 linux-*: DEFINES += HAVE_STDINT_H
48 freebsd-*: DEFINES += HAVE_PTHREAD_NP_H
49
50 DEFINES += BUILD_WEBKIT
51
52 win32-*: DEFINES += _HAS_TR1=0
53
54 # Pick up 3rdparty libraries from INCLUDE/LIB just like with MSVC
55 win32-g++ {
56 TMPPATH = $$quote($$(INCLUDE))
57 QMAKE_INCDIR_POST += $$split(TMPPATH,";")
58 TMPPATH = $$quote($$(LIB))
59 QMAKE_LIBDIR_POST += $$split(TMPPATH,";")
60 }
61
62 DEFINES += WTF_USE_JAVASCRIPTCORE_BINDINGS=1
63
64 DEFINES += WTF_CHANGES=1
65
66 include(JavaScriptCore.pri)
67
68 QMAKE_EXTRA_TARGETS += generated_files
69
70 lessThan(QT_MINOR_VERSION, 4) {
71 DEFINES += QT_BEGIN_NAMESPACE="" QT_END_NAMESPACE=""
72 }
73
74 *-g++*:QMAKE_CXXFLAGS_RELEASE -= -O2
75 *-g++*:QMAKE_CXXFLAGS_RELEASE += -O3