]> git.saurik.com Git - apple/javascriptcore.git/blob - Target.pri
JavaScriptCore-1097.3.3.tar.gz
[apple/javascriptcore.git] / Target.pri
1 # -------------------------------------------------------------------
2 # Target file for the JavaScriptSource library
3 #
4 # See 'Tools/qmake/README' for an overview of the build system
5 # -------------------------------------------------------------------
6
7 TEMPLATE = lib
8 TARGET = JavaScriptCore
9
10 include(JavaScriptCore.pri)
11
12 WEBKIT += wtf
13 QT += core
14 QT -= gui
15
16 CONFIG += staticlib
17
18 *-g++*:QMAKE_CXXFLAGS_RELEASE -= -O2
19 *-g++*:QMAKE_CXXFLAGS_RELEASE += -O3
20
21 # Rules when JIT enabled (not disabled)
22 !contains(DEFINES, ENABLE_JIT=0) {
23 linux*-g++*:greaterThan(QT_GCC_MAJOR_VERSION,3):greaterThan(QT_GCC_MINOR_VERSION,0) {
24 QMAKE_CXXFLAGS += -fno-stack-protector
25 QMAKE_CFLAGS += -fno-stack-protector
26 }
27 }
28
29 wince* {
30 SOURCES += $$QT_SOURCE_TREE/src/3rdparty/ce-compat/ce_time.c
31 }
32
33 include(yarr/yarr.pri)
34
35 INSTALLDEPS += all
36
37 SOURCES += \
38 API/JSBase.cpp \
39 API/JSCallbackConstructor.cpp \
40 API/JSCallbackFunction.cpp \
41 API/JSCallbackObject.cpp \
42 API/JSClassRef.cpp \
43 API/JSContextRef.cpp \
44 API/JSObjectRef.cpp \
45 API/JSStringRef.cpp \
46 API/JSValueRef.cpp \
47 API/OpaqueJSString.cpp \
48 assembler/ARMAssembler.cpp \
49 assembler/ARMv7Assembler.cpp \
50 assembler/MacroAssemblerARM.cpp \
51 assembler/MacroAssemblerSH4.cpp \
52 bytecode/CallLinkInfo.cpp \
53 bytecode/CallLinkStatus.cpp \
54 bytecode/CodeBlock.cpp \
55 bytecode/DFGExitProfile.cpp \
56 bytecode/ExecutionCounter.cpp \
57 bytecode/GetByIdStatus.cpp \
58 bytecode/JumpTable.cpp \
59 bytecode/LazyOperandValueProfile.cpp \
60 bytecode/MethodCallLinkInfo.cpp \
61 bytecode/MethodCallLinkStatus.cpp \
62 bytecode/MethodOfGettingAValueProfile.cpp \
63 bytecode/Opcode.cpp \
64 bytecode/PolymorphicPutByIdList.cpp \
65 bytecode/PredictedType.cpp \
66 bytecode/PutByIdStatus.cpp \
67 bytecode/SamplingTool.cpp \
68 bytecode/StructureStubInfo.cpp \
69 bytecompiler/BytecodeGenerator.cpp \
70 bytecompiler/NodesCodegen.cpp \
71 heap/CopiedSpace.cpp \
72 heap/ConservativeRoots.cpp \
73 heap/DFGCodeBlocks.cpp \
74 heap/WeakSet.cpp \
75 heap/WeakHandleOwner.cpp \
76 heap/WeakBlock.cpp \
77 heap/HandleSet.cpp \
78 heap/HandleStack.cpp \
79 heap/BlockAllocator.cpp \
80 heap/Heap.cpp \
81 heap/MachineStackMarker.cpp \
82 heap/MarkStack.cpp \
83 heap/MarkedAllocator.cpp \
84 heap/MarkedBlock.cpp \
85 heap/MarkedSpace.cpp \
86 heap/VTableSpectrum.cpp \
87 heap/WriteBarrierSupport.cpp \
88 debugger/DebuggerActivation.cpp \
89 debugger/DebuggerCallFrame.cpp \
90 debugger/Debugger.cpp \
91 dfg/DFGAbstractState.cpp \
92 dfg/DFGAssemblyHelpers.cpp \
93 dfg/DFGByteCodeParser.cpp \
94 dfg/DFGCapabilities.cpp \
95 dfg/DFGCFAPhase.cpp \
96 dfg/DFGCorrectableJumpPoint.cpp \
97 dfg/DFGCSEPhase.cpp \
98 dfg/DFGDriver.cpp \
99 dfg/DFGFixupPhase.cpp \
100 dfg/DFGGraph.cpp \
101 dfg/DFGJITCompiler.cpp \
102 dfg/DFGNodeFlags.cpp \
103 dfg/DFGOperations.cpp \
104 dfg/DFGOSREntry.cpp \
105 dfg/DFGOSRExit.cpp \
106 dfg/DFGOSRExitCompiler.cpp \
107 dfg/DFGOSRExitCompiler64.cpp \
108 dfg/DFGOSRExitCompiler32_64.cpp \
109 dfg/DFGPhase.cpp \
110 dfg/DFGPredictionPropagationPhase.cpp \
111 dfg/DFGRedundantPhiEliminationPhase.cpp \
112 dfg/DFGRepatch.cpp \
113 dfg/DFGSpeculativeJIT.cpp \
114 dfg/DFGSpeculativeJIT32_64.cpp \
115 dfg/DFGSpeculativeJIT64.cpp \
116 dfg/DFGThunks.cpp \
117 dfg/DFGVirtualRegisterAllocationPhase.cpp \
118 interpreter/AbstractPC.cpp \
119 interpreter/CallFrame.cpp \
120 interpreter/Interpreter.cpp \
121 interpreter/RegisterFile.cpp \
122 jit/ExecutableAllocatorFixedVMPool.cpp \
123 jit/ExecutableAllocator.cpp \
124 jit/HostCallReturnValue.cpp \
125 jit/JITArithmetic.cpp \
126 jit/JITArithmetic32_64.cpp \
127 jit/JITCall.cpp \
128 jit/JITCall32_64.cpp \
129 jit/JIT.cpp \
130 jit/JITExceptions.cpp \
131 jit/JITOpcodes.cpp \
132 jit/JITOpcodes32_64.cpp \
133 jit/JITPropertyAccess.cpp \
134 jit/JITPropertyAccess32_64.cpp \
135 jit/JITStubs.cpp \
136 jit/ThunkGenerators.cpp \
137 parser/Lexer.cpp \
138 parser/Nodes.cpp \
139 parser/ParserArena.cpp \
140 parser/Parser.cpp \
141 parser/SourceProviderCache.cpp \
142 profiler/Profile.cpp \
143 profiler/ProfileGenerator.cpp \
144 profiler/ProfileNode.cpp \
145 profiler/Profiler.cpp \
146 runtime/ArgList.cpp \
147 runtime/Arguments.cpp \
148 runtime/ArrayConstructor.cpp \
149 runtime/ArrayPrototype.cpp \
150 runtime/BooleanConstructor.cpp \
151 runtime/BooleanObject.cpp \
152 runtime/BooleanPrototype.cpp \
153 runtime/CallData.cpp \
154 runtime/CommonIdentifiers.cpp \
155 runtime/Completion.cpp \
156 runtime/ConstructData.cpp \
157 runtime/DateConstructor.cpp \
158 runtime/DateConversion.cpp \
159 runtime/DateInstance.cpp \
160 runtime/DatePrototype.cpp \
161 runtime/ErrorConstructor.cpp \
162 runtime/Error.cpp \
163 runtime/ErrorInstance.cpp \
164 runtime/ErrorPrototype.cpp \
165 runtime/ExceptionHelpers.cpp \
166 runtime/Executable.cpp \
167 runtime/FunctionConstructor.cpp \
168 runtime/FunctionPrototype.cpp \
169 runtime/GCActivityCallback.cpp \
170 runtime/GetterSetter.cpp \
171 runtime/Options.cpp \
172 runtime/Identifier.cpp \
173 runtime/InitializeThreading.cpp \
174 runtime/InternalFunction.cpp \
175 runtime/JSActivation.cpp \
176 runtime/JSAPIValueWrapper.cpp \
177 runtime/JSArray.cpp \
178 runtime/JSCell.cpp \
179 runtime/JSDateMath.cpp \
180 runtime/JSFunction.cpp \
181 runtime/JSBoundFunction.cpp \
182 runtime/JSGlobalData.cpp \
183 runtime/JSGlobalObject.cpp \
184 runtime/JSGlobalObjectFunctions.cpp \
185 runtime/JSGlobalThis.cpp \
186 runtime/JSLock.cpp \
187 runtime/JSNotAnObject.cpp \
188 runtime/JSObject.cpp \
189 runtime/JSONObject.cpp \
190 runtime/JSPropertyNameIterator.cpp \
191 runtime/JSStaticScopeObject.cpp \
192 runtime/JSString.cpp \
193 runtime/JSStringJoiner.cpp \
194 runtime/JSValue.cpp \
195 runtime/JSVariableObject.cpp \
196 runtime/JSWrapperObject.cpp \
197 runtime/LiteralParser.cpp \
198 runtime/Lookup.cpp \
199 runtime/MathObject.cpp \
200 runtime/NativeErrorConstructor.cpp \
201 runtime/NativeErrorPrototype.cpp \
202 runtime/NumberConstructor.cpp \
203 runtime/NumberObject.cpp \
204 runtime/NumberPrototype.cpp \
205 runtime/ObjectConstructor.cpp \
206 runtime/ObjectPrototype.cpp \
207 runtime/Operations.cpp \
208 runtime/PropertyDescriptor.cpp \
209 runtime/PropertyNameArray.cpp \
210 runtime/PropertySlot.cpp \
211 runtime/RegExpConstructor.cpp \
212 runtime/RegExpCachedResult.cpp \
213 runtime/RegExpMatchesArray.cpp \
214 runtime/RegExp.cpp \
215 runtime/RegExpObject.cpp \
216 runtime/RegExpPrototype.cpp \
217 runtime/RegExpCache.cpp \
218 runtime/SamplingCounter.cpp \
219 runtime/ScopeChain.cpp \
220 runtime/SmallStrings.cpp \
221 runtime/StrictEvalActivation.cpp \
222 runtime/StringConstructor.cpp \
223 runtime/StringObject.cpp \
224 runtime/StringPrototype.cpp \
225 runtime/StringRecursionChecker.cpp \
226 runtime/StructureChain.cpp \
227 runtime/Structure.cpp \
228 runtime/TimeoutChecker.cpp \
229 runtime/UString.cpp \
230 tools/CodeProfile.cpp \
231 tools/CodeProfiling.cpp \
232 yarr/YarrJIT.cpp \
233
234 *sh4* {
235 QMAKE_CXXFLAGS += -mieee -w
236 QMAKE_CFLAGS += -mieee -w
237 }
238
239 lessThan(QT_GCC_MAJOR_VERSION, 5) {
240 # GCC 4.5 and before
241 lessThan(QT_GCC_MINOR_VERSION, 6) {
242 # Disable C++0x mode in JSC for those who enabled it in their Qt's mkspec.
243 *-g++*:QMAKE_CXXFLAGS -= -std=c++0x -std=gnu++0x
244 }
245
246 # GCC 4.6 and after.
247 greaterThan(QT_GCC_MINOR_VERSION, 5) {
248 if (!contains(QMAKE_CXXFLAGS, -std=c++0x) && !contains(QMAKE_CXXFLAGS, -std=gnu++0x)) {
249 # We need to deactivate those warnings because some names conflicts with upcoming c++0x types (e.g.nullptr).
250 QMAKE_CFLAGS_WARN_ON += -Wno-c++0x-compat
251 QMAKE_CXXFLAGS_WARN_ON += -Wno-c++0x-compat
252 QMAKE_CFLAGS += -Wno-c++0x-compat
253 QMAKE_CXXFLAGS += -Wno-c++0x-compat
254 }
255 }
256 }