Replace JSC::UString by WTF::String
[WebKit-https.git] / Source / JavaScriptCore / 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 include(yarr/yarr.pri)
30
31 INSTALLDEPS += all
32
33 SOURCES += \
34     API/JSBase.cpp \
35     API/JSCallbackConstructor.cpp \
36     API/JSCallbackFunction.cpp \
37     API/JSCallbackObject.cpp \
38     API/JSClassRef.cpp \
39     API/JSContextRef.cpp \
40     API/JSObjectRef.cpp \
41     API/JSStringRef.cpp \
42     API/JSValueRef.cpp \
43     API/JSWeakObjectMapRefPrivate.cpp \
44     API/OpaqueJSString.cpp \
45     assembler/ARMAssembler.cpp \
46     assembler/ARMv7Assembler.cpp \
47     assembler/LinkBuffer.cpp \
48     assembler/MacroAssemblerARM.cpp \
49     assembler/MacroAssemblerSH4.cpp \
50     bytecode/ArrayProfile.cpp \
51     bytecode/CallLinkInfo.cpp \
52     bytecode/CallLinkStatus.cpp \
53     bytecode/CodeBlock.cpp \
54     bytecode/DFGExitProfile.cpp \
55     bytecode/ExecutionCounter.cpp \
56     bytecode/GetByIdStatus.cpp \
57     bytecode/JumpTable.cpp \
58     bytecode/LazyOperandValueProfile.cpp \
59     bytecode/MethodCallLinkInfo.cpp \
60     bytecode/MethodCallLinkStatus.cpp \
61     bytecode/MethodOfGettingAValueProfile.cpp \
62     bytecode/Opcode.cpp \
63     bytecode/PolymorphicPutByIdList.cpp \
64     bytecode/PutByIdStatus.cpp \
65     bytecode/ResolveGlobalStatus.cpp \
66     bytecode/SamplingTool.cpp \
67     bytecode/SpeculatedType.cpp \
68     bytecode/StructureStubClearingWatchpoint.cpp \
69     bytecode/StructureStubInfo.cpp \
70     bytecode/Watchpoint.cpp \
71     bytecompiler/BytecodeGenerator.cpp \
72     bytecompiler/NodesCodegen.cpp \
73     heap/CopiedSpace.cpp \
74     heap/ConservativeRoots.cpp \
75     heap/DFGCodeBlocks.cpp \
76     heap/WeakSet.cpp \
77     heap/WeakHandleOwner.cpp \
78     heap/WeakBlock.cpp \
79     heap/HandleSet.cpp \
80     heap/HandleStack.cpp \
81     heap/BlockAllocator.cpp \
82     heap/GCThreadSharedData.cpp \
83     heap/Heap.cpp \
84     heap/HeapTimer.cpp \
85     heap/IncrementalSweeper.cpp \
86     heap/JITStubRoutineSet.cpp \
87     heap/MachineStackMarker.cpp \
88     heap/MarkStack.cpp \
89     heap/MarkedAllocator.cpp \
90     heap/MarkedBlock.cpp \
91     heap/MarkedSpace.cpp \
92     heap/VTableSpectrum.cpp \
93     heap/WriteBarrierSupport.cpp \
94     debugger/DebuggerActivation.cpp \
95     debugger/DebuggerCallFrame.cpp \
96     debugger/Debugger.cpp \
97     dfg/DFGAbstractState.cpp \
98     dfg/DFGArgumentsSimplificationPhase.cpp \
99     dfg/DFGArrayMode.cpp \
100     dfg/DFGAssemblyHelpers.cpp \
101     dfg/DFGByteCodeParser.cpp \
102     dfg/DFGCapabilities.cpp \
103     dfg/DFGCFAPhase.cpp \
104     dfg/DFGCFGSimplificationPhase.cpp \
105     dfg/DFGConstantFoldingPhase.cpp \
106     dfg/DFGCorrectableJumpPoint.cpp \
107     dfg/DFGCSEPhase.cpp \
108     dfg/DFGDisassembler.cpp \
109     dfg/DFGDominators.cpp \
110     dfg/DFGDriver.cpp \
111     dfg/DFGFixupPhase.cpp \
112     dfg/DFGGraph.cpp \
113     dfg/DFGJITCompiler.cpp \
114     dfg/DFGMinifiedNode.cpp \
115     dfg/DFGNodeFlags.cpp \
116     dfg/DFGOperations.cpp \
117     dfg/DFGOSREntry.cpp \
118     dfg/DFGOSRExit.cpp \
119     dfg/DFGOSRExitCompiler.cpp \
120     dfg/DFGOSRExitCompiler64.cpp \
121     dfg/DFGOSRExitCompiler32_64.cpp \
122     dfg/DFGPhase.cpp \
123     dfg/DFGPredictionPropagationPhase.cpp \
124     dfg/DFGRepatch.cpp \
125     dfg/DFGSpeculativeJIT.cpp \
126     dfg/DFGSpeculativeJIT32_64.cpp \
127     dfg/DFGSpeculativeJIT64.cpp \
128     dfg/DFGStructureCheckHoistingPhase.cpp \
129     dfg/DFGThunks.cpp \
130     dfg/DFGValueSource.cpp \
131     dfg/DFGVariableEvent.cpp \
132     dfg/DFGVariableEventStream.cpp \
133     dfg/DFGValidate.cpp \
134     dfg/DFGVirtualRegisterAllocationPhase.cpp \
135     interpreter/AbstractPC.cpp \
136     interpreter/CallFrame.cpp \
137     interpreter/Interpreter.cpp \
138     interpreter/RegisterFile.cpp \
139     jit/ExecutableAllocatorFixedVMPool.cpp \
140     jit/ExecutableAllocator.cpp \
141     jit/HostCallReturnValue.cpp \
142     jit/GCAwareJITStubRoutine.cpp \
143     jit/JITArithmetic.cpp \
144     jit/JITArithmetic32_64.cpp \
145     jit/JITCall.cpp \
146     jit/JITCall32_64.cpp \
147     jit/JIT.cpp \
148     jit/JITExceptions.cpp \
149     jit/JITOpcodes.cpp \
150     jit/JITOpcodes32_64.cpp \
151     jit/JITPropertyAccess.cpp \
152     jit/JITPropertyAccess32_64.cpp \
153     jit/JITStubRoutine.cpp \
154     jit/JITStubs.cpp \
155     jit/JumpReplacementWatchpoint.cpp \
156     jit/ThunkGenerators.cpp \
157     parser/Lexer.cpp \
158     parser/Nodes.cpp \
159     parser/ParserArena.cpp \
160     parser/Parser.cpp \
161     parser/SourceProviderCache.cpp \
162     profiler/Profile.cpp \
163     profiler/ProfileGenerator.cpp \
164     profiler/ProfileNode.cpp \
165     profiler/Profiler.cpp \
166     runtime/ArgList.cpp \
167     runtime/Arguments.cpp \
168     runtime/ArrayConstructor.cpp \
169     runtime/ArrayPrototype.cpp \
170     runtime/BooleanConstructor.cpp \
171     runtime/BooleanObject.cpp \
172     runtime/BooleanPrototype.cpp \
173     runtime/CallData.cpp \
174     runtime/CommonIdentifiers.cpp \
175     runtime/Completion.cpp \
176     runtime/ConstructData.cpp \
177     runtime/DateConstructor.cpp \
178     runtime/DateConversion.cpp \
179     runtime/DateInstance.cpp \
180     runtime/DatePrototype.cpp \
181     runtime/ErrorConstructor.cpp \
182     runtime/Error.cpp \
183     runtime/ErrorInstance.cpp \
184     runtime/ErrorPrototype.cpp \
185     runtime/ExceptionHelpers.cpp \
186     runtime/Executable.cpp \
187     runtime/FunctionConstructor.cpp \
188     runtime/FunctionPrototype.cpp \
189     runtime/GCActivityCallback.cpp \
190     runtime/GetterSetter.cpp \
191     runtime/Options.cpp \
192     runtime/Identifier.cpp \
193     runtime/InitializeThreading.cpp \
194     runtime/InternalFunction.cpp \
195     runtime/JSActivation.cpp \
196     runtime/JSAPIValueWrapper.cpp \
197     runtime/JSArray.cpp \
198     runtime/JSCell.cpp \
199     runtime/JSDateMath.cpp \
200     runtime/JSFunction.cpp \
201     runtime/JSBoundFunction.cpp \
202     runtime/JSGlobalData.cpp \
203     runtime/JSGlobalObject.cpp \
204     runtime/JSGlobalObjectFunctions.cpp \
205     runtime/JSGlobalThis.cpp \
206     runtime/JSLock.cpp \
207     runtime/JSNotAnObject.cpp \
208     runtime/JSObject.cpp \
209     runtime/JSONObject.cpp \
210     runtime/JSPropertyNameIterator.cpp \
211     runtime/JSSegmentedVariableObject.cpp \
212     runtime/JSWithScope.cpp \
213     runtime/JSNameScope.cpp \
214     runtime/JSScope.cpp \
215     runtime/JSString.cpp \
216     runtime/JSStringJoiner.cpp \
217     runtime/JSSymbolTableObject.cpp \
218     runtime/JSValue.cpp \
219     runtime/JSVariableObject.cpp \
220     runtime/JSWrapperObject.cpp \
221     runtime/LiteralParser.cpp \
222     runtime/Lookup.cpp \
223     runtime/MathObject.cpp \
224     runtime/MemoryStatistics.cpp \
225     runtime/NameConstructor.cpp \
226     runtime/NameInstance.cpp \
227     runtime/NamePrototype.cpp \
228     runtime/NativeErrorConstructor.cpp \
229     runtime/NativeErrorPrototype.cpp \
230     runtime/NumberConstructor.cpp \
231     runtime/NumberObject.cpp \
232     runtime/NumberPrototype.cpp \
233     runtime/ObjectConstructor.cpp \
234     runtime/ObjectPrototype.cpp \
235     runtime/Operations.cpp \
236     runtime/PropertyDescriptor.cpp \
237     runtime/PropertyNameArray.cpp \
238     runtime/PropertySlot.cpp \
239     runtime/RegExpConstructor.cpp \
240     runtime/RegExpCachedResult.cpp \
241     runtime/RegExpMatchesArray.cpp \
242     runtime/RegExp.cpp \
243     runtime/RegExpObject.cpp \
244     runtime/RegExpPrototype.cpp \
245     runtime/RegExpCache.cpp \
246     runtime/SamplingCounter.cpp \
247     runtime/ScopeChain.cpp \
248     runtime/SmallStrings.cpp \
249     runtime/StrictEvalActivation.cpp \
250     runtime/StringConstructor.cpp \
251     runtime/StringObject.cpp \
252     runtime/StringPrototype.cpp \
253     runtime/StringRecursionChecker.cpp \
254     runtime/StructureChain.cpp \
255     runtime/Structure.cpp \
256     runtime/SymbolTable.cpp \
257     runtime/TimeoutChecker.cpp \
258     tools/CodeProfile.cpp \
259     tools/CodeProfiling.cpp \
260     yarr/YarrJIT.cpp \
261
262 HEADERS += $$files(*.h, true)
263
264 *sh4* {
265     QMAKE_CXXFLAGS += -mieee -w
266     QMAKE_CFLAGS   += -mieee -w
267 }
268
269 lessThan(QT_GCC_MAJOR_VERSION, 5) {
270     # GCC 4.5 and before
271     lessThan(QT_GCC_MINOR_VERSION, 6) {
272         # Disable C++0x mode in JSC for those who enabled it in their Qt's mkspec.
273         *-g++*:QMAKE_CXXFLAGS -= -std=c++0x -std=gnu++0x
274     }
275 }