1 | # JavaScriptCore - qmake build info
|
---|
2 | CONFIG += building-libs
|
---|
3 | include($$PWD/../WebKit.pri)
|
---|
4 | include(JavaScriptCore.pri)
|
---|
5 |
|
---|
6 | TEMPLATE = lib
|
---|
7 | CONFIG += staticlib
|
---|
8 | # Don't use JavaScriptCore as the target name. qmake would create a JavaScriptCore.vcproj for msvc
|
---|
9 | # which already exists as a directory
|
---|
10 | TARGET = $$JAVASCRIPTCORE_TARGET
|
---|
11 | QT += core
|
---|
12 |
|
---|
13 | CONFIG += depend_includepath
|
---|
14 |
|
---|
15 | contains(QT_CONFIG, embedded):CONFIG += embedded
|
---|
16 |
|
---|
17 | CONFIG(debug_and_release):CONFIG(debug, debug|release): DESTDIR = debug
|
---|
18 | CONFIG(debug_and_release):CONFIG(release, debug|release): DESTDIR = release
|
---|
19 |
|
---|
20 | !CONFIG(QTDIR_build) {
|
---|
21 | CONFIG(debug, debug|release) {
|
---|
22 | OBJECTS_DIR = obj/debug
|
---|
23 | } else { # Release
|
---|
24 | OBJECTS_DIR = obj/release
|
---|
25 | }
|
---|
26 | }
|
---|
27 |
|
---|
28 | CONFIG(QTDIR_build) {
|
---|
29 | # Remove the following 2 lines if you want debug information in JavaScriptCore
|
---|
30 | CONFIG -= separate_debug_info
|
---|
31 | CONFIG += no_debug_info
|
---|
32 | }
|
---|
33 |
|
---|
34 | # Pick up 3rdparty libraries from INCLUDE/LIB just like with MSVC
|
---|
35 | win32-g++ {
|
---|
36 | TMPPATH = $$quote($$(INCLUDE))
|
---|
37 | QMAKE_INCDIR_POST += $$split(TMPPATH,";")
|
---|
38 | TMPPATH = $$quote($$(LIB))
|
---|
39 | QMAKE_LIBDIR_POST += $$split(TMPPATH,";")
|
---|
40 | }
|
---|
41 |
|
---|
42 | *-g++*:QMAKE_CXXFLAGS_RELEASE -= -O2
|
---|
43 | *-g++*:QMAKE_CXXFLAGS_RELEASE += -O3
|
---|
44 |
|
---|
45 | # Rules when JIT enabled (not disabled)
|
---|
46 | !contains(DEFINES, ENABLE_JIT=0) {
|
---|
47 | linux*-g++*:greaterThan(QT_GCC_MAJOR_VERSION,3):greaterThan(QT_GCC_MINOR_VERSION,0) {
|
---|
48 | QMAKE_CXXFLAGS += -fno-stack-protector
|
---|
49 | QMAKE_CFLAGS += -fno-stack-protector
|
---|
50 | }
|
---|
51 | }
|
---|
52 |
|
---|
53 | wince* {
|
---|
54 | SOURCES += $$QT_SOURCE_TREE/src/3rdparty/ce-compat/ce_time.c
|
---|
55 | }
|
---|
56 |
|
---|
57 | include(pcre/pcre.pri)
|
---|
58 |
|
---|
59 | SOURCES += \
|
---|
60 | API/JSBase.cpp \
|
---|
61 | API/JSCallbackConstructor.cpp \
|
---|
62 | API/JSCallbackFunction.cpp \
|
---|
63 | API/JSCallbackObject.cpp \
|
---|
64 | API/JSClassRef.cpp \
|
---|
65 | API/JSContextRef.cpp \
|
---|
66 | API/JSObjectRef.cpp \
|
---|
67 | API/JSStringRef.cpp \
|
---|
68 | API/JSValueRef.cpp \
|
---|
69 | API/OpaqueJSString.cpp \
|
---|
70 | assembler/ARMAssembler.cpp \
|
---|
71 | assembler/MacroAssemblerARM.cpp \
|
---|
72 | bytecode/CodeBlock.cpp \
|
---|
73 | bytecode/JumpTable.cpp \
|
---|
74 | bytecode/Opcode.cpp \
|
---|
75 | bytecode/SamplingTool.cpp \
|
---|
76 | bytecode/StructureStubInfo.cpp \
|
---|
77 | bytecompiler/BytecodeGenerator.cpp \
|
---|
78 | bytecompiler/NodesCodegen.cpp \
|
---|
79 | debugger/DebuggerActivation.cpp \
|
---|
80 | debugger/DebuggerCallFrame.cpp \
|
---|
81 | debugger/Debugger.cpp \
|
---|
82 | interpreter/CallFrame.cpp \
|
---|
83 | interpreter/Interpreter.cpp \
|
---|
84 | interpreter/RegisterFile.cpp \
|
---|
85 | jit/ExecutableAllocatorFixedVMPool.cpp \
|
---|
86 | jit/ExecutableAllocatorPosix.cpp \
|
---|
87 | jit/ExecutableAllocatorSymbian.cpp \
|
---|
88 | jit/ExecutableAllocatorWin.cpp \
|
---|
89 | jit/ExecutableAllocator.cpp \
|
---|
90 | jit/JITArithmetic.cpp \
|
---|
91 | jit/JITCall.cpp \
|
---|
92 | jit/JIT.cpp \
|
---|
93 | jit/JITOpcodes.cpp \
|
---|
94 | jit/JITPropertyAccess.cpp \
|
---|
95 | jit/JITPropertyAccess32_64.cpp \
|
---|
96 | jit/JITStubs.cpp \
|
---|
97 | parser/Lexer.cpp \
|
---|
98 | parser/Nodes.cpp \
|
---|
99 | parser/ParserArena.cpp \
|
---|
100 | parser/Parser.cpp \
|
---|
101 | profiler/Profile.cpp \
|
---|
102 | profiler/ProfileGenerator.cpp \
|
---|
103 | profiler/ProfileNode.cpp \
|
---|
104 | profiler/Profiler.cpp \
|
---|
105 | runtime/ArgList.cpp \
|
---|
106 | runtime/Arguments.cpp \
|
---|
107 | runtime/ArrayConstructor.cpp \
|
---|
108 | runtime/ArrayPrototype.cpp \
|
---|
109 | runtime/BooleanConstructor.cpp \
|
---|
110 | runtime/BooleanObject.cpp \
|
---|
111 | runtime/BooleanPrototype.cpp \
|
---|
112 | runtime/CallData.cpp \
|
---|
113 | runtime/Collector.cpp \
|
---|
114 | runtime/CommonIdentifiers.cpp \
|
---|
115 | runtime/Completion.cpp \
|
---|
116 | runtime/ConstructData.cpp \
|
---|
117 | runtime/DateConstructor.cpp \
|
---|
118 | runtime/DateConversion.cpp \
|
---|
119 | runtime/DateInstance.cpp \
|
---|
120 | runtime/DatePrototype.cpp \
|
---|
121 | runtime/ErrorConstructor.cpp \
|
---|
122 | runtime/Error.cpp \
|
---|
123 | runtime/ErrorInstance.cpp \
|
---|
124 | runtime/ErrorPrototype.cpp \
|
---|
125 | runtime/ExceptionHelpers.cpp \
|
---|
126 | runtime/Executable.cpp \
|
---|
127 | runtime/FunctionConstructor.cpp \
|
---|
128 | runtime/FunctionPrototype.cpp \
|
---|
129 | runtime/GetterSetter.cpp \
|
---|
130 | runtime/GlobalEvalFunction.cpp \
|
---|
131 | runtime/Identifier.cpp \
|
---|
132 | runtime/InitializeThreading.cpp \
|
---|
133 | runtime/InternalFunction.cpp \
|
---|
134 | runtime/JSActivation.cpp \
|
---|
135 | runtime/JSAPIValueWrapper.cpp \
|
---|
136 | runtime/JSArray.cpp \
|
---|
137 | runtime/JSByteArray.cpp \
|
---|
138 | runtime/JSCell.cpp \
|
---|
139 | runtime/JSFunction.cpp \
|
---|
140 | runtime/JSGlobalData.cpp \
|
---|
141 | runtime/JSGlobalObject.cpp \
|
---|
142 | runtime/JSGlobalObjectFunctions.cpp \
|
---|
143 | runtime/JSImmediate.cpp \
|
---|
144 | runtime/JSLock.cpp \
|
---|
145 | runtime/JSNotAnObject.cpp \
|
---|
146 | runtime/JSNumberCell.cpp \
|
---|
147 | runtime/JSObject.cpp \
|
---|
148 | runtime/JSONObject.cpp \
|
---|
149 | runtime/JSPropertyNameIterator.cpp \
|
---|
150 | runtime/JSStaticScopeObject.cpp \
|
---|
151 | runtime/JSString.cpp \
|
---|
152 | runtime/JSValue.cpp \
|
---|
153 | runtime/JSVariableObject.cpp \
|
---|
154 | runtime/JSWrapperObject.cpp \
|
---|
155 | runtime/LiteralParser.cpp \
|
---|
156 | runtime/Lookup.cpp \
|
---|
157 | runtime/MarkStackPosix.cpp \
|
---|
158 | runtime/MarkStackSymbian.cpp \
|
---|
159 | runtime/MarkStackWin.cpp \
|
---|
160 | runtime/MarkStack.cpp \
|
---|
161 | runtime/MathObject.cpp \
|
---|
162 | runtime/NativeErrorConstructor.cpp \
|
---|
163 | runtime/NativeErrorPrototype.cpp \
|
---|
164 | runtime/NumberConstructor.cpp \
|
---|
165 | runtime/NumberObject.cpp \
|
---|
166 | runtime/NumberPrototype.cpp \
|
---|
167 | runtime/ObjectConstructor.cpp \
|
---|
168 | runtime/ObjectPrototype.cpp \
|
---|
169 | runtime/Operations.cpp \
|
---|
170 | runtime/PropertyDescriptor.cpp \
|
---|
171 | runtime/PropertyNameArray.cpp \
|
---|
172 | runtime/PropertySlot.cpp \
|
---|
173 | runtime/PrototypeFunction.cpp \
|
---|
174 | runtime/RegExpConstructor.cpp \
|
---|
175 | runtime/RegExp.cpp \
|
---|
176 | runtime/RegExpObject.cpp \
|
---|
177 | runtime/RegExpPrototype.cpp \
|
---|
178 | runtime/ScopeChain.cpp \
|
---|
179 | runtime/SmallStrings.cpp \
|
---|
180 | runtime/StringConstructor.cpp \
|
---|
181 | runtime/StringObject.cpp \
|
---|
182 | runtime/StringPrototype.cpp \
|
---|
183 | runtime/StructureChain.cpp \
|
---|
184 | runtime/Structure.cpp \
|
---|
185 | runtime/TimeoutChecker.cpp \
|
---|
186 | runtime/UString.cpp \
|
---|
187 | runtime/UStringImpl.cpp \
|
---|
188 | wtf/Assertions.cpp \
|
---|
189 | wtf/ByteArray.cpp \
|
---|
190 | wtf/CurrentTime.cpp \
|
---|
191 | wtf/DateMath.cpp \
|
---|
192 | wtf/dtoa.cpp \
|
---|
193 | wtf/FastMalloc.cpp \
|
---|
194 | wtf/HashTable.cpp \
|
---|
195 | wtf/MainThread.cpp \
|
---|
196 | wtf/qt/MainThreadQt.cpp \
|
---|
197 | wtf/qt/ThreadingQt.cpp \
|
---|
198 | wtf/RandomNumber.cpp \
|
---|
199 | wtf/RefCountedLeakCounter.cpp \
|
---|
200 | wtf/symbian/BlockAllocatorSymbian.cpp \
|
---|
201 | wtf/ThreadingNone.cpp \
|
---|
202 | wtf/Threading.cpp \
|
---|
203 | wtf/TypeTraits.cpp \
|
---|
204 | wtf/text/CString.cpp \
|
---|
205 | wtf/unicode/CollatorDefault.cpp \
|
---|
206 | wtf/unicode/icu/CollatorICU.cpp \
|
---|
207 | wtf/unicode/UTF8.cpp \
|
---|
208 | yarr/RegexCompiler.cpp \
|
---|
209 | yarr/RegexInterpreter.cpp \
|
---|
210 | yarr/RegexJIT.cpp
|
---|
211 |
|
---|
212 | # Generated files, simply list them for JavaScriptCore
|
---|
213 | SOURCES += \
|
---|
214 | $${JSC_GENERATED_SOURCES_DIR}/Grammar.cpp
|
---|
215 |
|
---|
216 | !contains(DEFINES, USE_SYSTEM_MALLOC) {
|
---|
217 | SOURCES += wtf/TCSystemAlloc.cpp
|
---|
218 | }
|
---|