1 # -------------------------------------------------------------------
2 # Target file for the JavaScriptSource library
4 # See 'Tools/qmake/README' for an overview of the build system
5 # -------------------------------------------------------------------
8 TARGET = JavaScriptCore
10 include(JavaScriptCore.pri)
18 *-g++*:QMAKE_CXXFLAGS_RELEASE -= -O2
19 *-g++*:QMAKE_CXXFLAGS_RELEASE += -O3
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
30 SOURCES += $$QT_SOURCE_TREE/src/3rdparty/ce-compat/ce_time.c
33 include(yarr/yarr.pri)
39 API/JSCallbackConstructor.cpp \
40 API/JSCallbackFunction.cpp \
41 API/JSCallbackObject.cpp \
43 API/JSContextRef.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 \
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 \
75 heap/WeakHandleOwner.cpp \
78 heap/HandleStack.cpp \
79 heap/BlockAllocator.cpp \
81 heap/MachineStackMarker.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 \
96 dfg/DFGCorrectableJumpPoint.cpp \
99 dfg/DFGFixupPhase.cpp \
101 dfg/DFGJITCompiler.cpp \
102 dfg/DFGNodeFlags.cpp \
103 dfg/DFGOperations.cpp \
104 dfg/DFGOSREntry.cpp \
106 dfg/DFGOSRExitCompiler.cpp \
107 dfg/DFGOSRExitCompiler64.cpp \
108 dfg/DFGOSRExitCompiler32_64.cpp \
110 dfg/DFGPredictionPropagationPhase.cpp \
111 dfg/DFGRedundantPhiEliminationPhase.cpp \
113 dfg/DFGSpeculativeJIT.cpp \
114 dfg/DFGSpeculativeJIT32_64.cpp \
115 dfg/DFGSpeculativeJIT64.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 \
128 jit/JITCall32_64.cpp \
130 jit/JITExceptions.cpp \
132 jit/JITOpcodes32_64.cpp \
133 jit/JITPropertyAccess.cpp \
134 jit/JITPropertyAccess32_64.cpp \
136 jit/ThunkGenerators.cpp \
139 parser/ParserArena.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 \
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 \
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 \
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 \
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 \
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 \
235 QMAKE_CXXFLAGS += -mieee -w
236 QMAKE_CFLAGS += -mieee -w
239 lessThan(QT_GCC_MAJOR_VERSION, 5) {
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
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