0
|
1 |
TARGET = QtScript
|
|
2 |
QPRO_PWD = $$PWD
|
|
3 |
QT = core
|
|
4 |
DEFINES += JSC=QTJSC jscyyparse=qtjscyyparse jscyylex=qtjscyylex jscyyerror=qtjscyyerror
|
|
5 |
DEFINES += QT_BUILD_SCRIPT_LIB
|
|
6 |
DEFINES += QT_NO_USING_NAMESPACE
|
|
7 |
DEFINES += QLALR_NO_QSCRIPTGRAMMAR_DEBUG_INFO
|
|
8 |
#win32-msvc*|win32-icc:QMAKE_LFLAGS += /BASE:0x66000000 ### FIXME
|
|
9 |
|
|
10 |
unix:QMAKE_PKGCONFIG_REQUIRES = QtCore
|
|
11 |
|
|
12 |
include(../qbase.pri)
|
|
13 |
|
|
14 |
CONFIG += building-libs
|
|
15 |
|
|
16 |
# FIXME: shared the statically built JavaScriptCore
|
|
17 |
|
|
18 |
# Fetch the base WebKit directory from the WEBKITDIR environment variable;
|
|
19 |
# fall back to src/3rdparty otherwise
|
|
20 |
WEBKITDIR = $$(WEBKITDIR)
|
|
21 |
isEmpty(WEBKITDIR) {
|
|
22 |
WEBKITDIR = $$PWD/../3rdparty/javascriptcore
|
|
23 |
GENERATED_SOURCES_DIR = generated
|
|
24 |
} else {
|
|
25 |
message(using external WebKit from $$WEBKITDIR)
|
|
26 |
CONFIG -= QTDIR_build
|
|
27 |
}
|
|
28 |
include($$WEBKITDIR/WebKit.pri)
|
|
29 |
|
|
30 |
# Disable a few warnings on Windows.
|
|
31 |
# These are in addition to the ones disabled in WebKit.pri
|
|
32 |
win32-msvc*: QMAKE_CXXFLAGS += -wd4396 -wd4099
|
|
33 |
|
|
34 |
# Windows CE-specific stuff copied from WebCore.pro
|
|
35 |
# ### Should rather be in JavaScriptCore.pri?
|
|
36 |
wince* {
|
|
37 |
INCLUDEPATH += $$WEBKITDIR/JavaScriptCore/os-wince
|
|
38 |
INCLUDEPATH += $$WEBKITDIR/JavaScriptCore/os-win32
|
|
39 |
LIBS += -lmmtimer
|
|
40 |
}
|
|
41 |
|
|
42 |
include($$WEBKITDIR/JavaScriptCore/JavaScriptCore.pri)
|
|
43 |
|
|
44 |
INCLUDEPATH += $$WEBKITDIR/JavaScriptCore
|
|
45 |
INCLUDEPATH += $$WEBKITDIR/JavaScriptCore/parser
|
|
46 |
INCLUDEPATH += $$WEBKITDIR/JavaScriptCore/bytecompiler
|
|
47 |
INCLUDEPATH += $$WEBKITDIR/JavaScriptCore/debugger
|
|
48 |
INCLUDEPATH += $$WEBKITDIR/JavaScriptCore/runtime
|
|
49 |
INCLUDEPATH += $$WEBKITDIR/JavaScriptCore/wtf
|
|
50 |
INCLUDEPATH += $$WEBKITDIR/JavaScriptCore/unicode
|
|
51 |
INCLUDEPATH += $$WEBKITDIR/JavaScriptCore/interpreter
|
|
52 |
INCLUDEPATH += $$WEBKITDIR/JavaScriptCore/jit
|
|
53 |
INCLUDEPATH += $$WEBKITDIR/JavaScriptCore/profiler
|
|
54 |
INCLUDEPATH += $$WEBKITDIR/JavaScriptCore/wrec
|
|
55 |
INCLUDEPATH += $$WEBKITDIR/JavaScriptCore/API
|
|
56 |
INCLUDEPATH += $$WEBKITDIR/JavaScriptCore/bytecode
|
|
57 |
INCLUDEPATH += $$WEBKITDIR/JavaScriptCore/assembler
|
|
58 |
INCLUDEPATH += $$WEBKITDIR/JavaScriptCore/generated
|
|
59 |
|
|
60 |
# This line copied from WebCore.pro
|
|
61 |
DEFINES += WTF_USE_JAVASCRIPTCORE_BINDINGS=1 WTF_CHANGES=1
|
|
62 |
|
|
63 |
DEFINES += NDEBUG
|
|
64 |
|
|
65 |
solaris-g++:isEqual(QT_ARCH,sparc) {
|
|
66 |
CONFIG -= separate_debug_info
|
|
67 |
CONFIG += no_debug_info
|
|
68 |
}
|
|
69 |
|
|
70 |
# Avoid JSC C API functions being exported.
|
|
71 |
DEFINES += JS_EXPORT="" JS_EXPORTDATA=""
|
|
72 |
|
|
73 |
INCLUDEPATH += $$PWD
|
|
74 |
|
|
75 |
include(script.pri)
|
|
76 |
|
|
77 |
symbian:TARGET.UID3=0x2001B2E1
|