source: webkit/trunk/JavaScriptCore/JavaScriptCore.pri@ 46472

Last change on this file since 46472 was 46472, checked in by Simon Hausmann, 16 years ago

2009-07-28 Csaba Osztrogonac <[email protected]>

Reviewed by Simon Hausmann.

[Qt] Determining whether to use JIT or interpreter
moved from JavaScriptCore.pri to Platform.h

File size: 7.4 KB
Line 
1# JavaScriptCore - Qt4 build info
2VPATH += $$PWD
3
4CONFIG(debug, debug|release) {
5 isEmpty(GENERATED_SOURCES_DIR):GENERATED_SOURCES_DIR = generated$${QMAKE_DIR_SEP}debug
6 OBJECTS_DIR = obj/debug
7} else { # Release
8 isEmpty(GENERATED_SOURCES_DIR):GENERATED_SOURCES_DIR = generated$${QMAKE_DIR_SEP}release
9 OBJECTS_DIR = obj/release
10}
11
12INCLUDEPATH = \
13 $$PWD \
14 $$PWD/.. \
15 $$PWD/assembler \
16 $$PWD/bytecode \
17 $$PWD/bytecompiler \
18 $$PWD/debugger \
19 $$PWD/interpreter \
20 $$PWD/jit \
21 $$PWD/parser \
22 $$PWD/profiler \
23 $$PWD/runtime \
24 $$PWD/wrec \
25 $$PWD/wtf \
26 $$PWD/wtf/unicode \
27 $$PWD/yarr \
28 $$PWD/API \
29 $$PWD/ForwardingHeaders \
30 $$GENERATED_SOURCES_DIR \
31 $$INCLUDEPATH
32
33DEFINES += BUILDING_QT__ BUILDING_JavaScriptCore BUILDING_WTF
34
35GENERATED_SOURCES_DIR_SLASH = $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}
36win32-* {
37 LIBS += -lwinmm
38}
39
40# In debug mode JIT disabled until crash fixed
41win32-* {
42 CONFIG(debug):!contains(DEFINES, ENABLE_JIT=1): DEFINES+=ENABLE_JIT=0
43}
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
53include(pcre/pcre.pri)
54
55LUT_FILES += \
56 runtime/DatePrototype.cpp \
57 runtime/JSONObject.cpp \
58 runtime/NumberConstructor.cpp \
59 runtime/StringPrototype.cpp \
60 runtime/ArrayPrototype.cpp \
61 runtime/MathObject.cpp \
62 runtime/RegExpConstructor.cpp \
63 runtime/RegExpObject.cpp
64
65KEYWORDLUT_FILES += \
66 parser/Keywords.table
67
68JSCBISON += \
69 parser/Grammar.y
70
71SOURCES += \
72 wtf/Assertions.cpp \
73 wtf/ByteArray.cpp \
74 wtf/HashTable.cpp \
75 wtf/MainThread.cpp \
76 wtf/RandomNumber.cpp \
77 wtf/RefCountedLeakCounter.cpp \
78 wtf/TypeTraits.cpp \
79 wtf/unicode/CollatorDefault.cpp \
80 wtf/unicode/icu/CollatorICU.cpp \
81 wtf/unicode/UTF8.cpp \
82 API/JSBase.cpp \
83 API/JSCallbackConstructor.cpp \
84 API/JSCallbackFunction.cpp \
85 API/JSCallbackObject.cpp \
86 API/JSClassRef.cpp \
87 API/JSContextRef.cpp \
88 API/JSObjectRef.cpp \
89 API/JSStringRef.cpp \
90 API/JSValueRef.cpp \
91 API/OpaqueJSString.cpp \
92 runtime/InitializeThreading.cpp \
93 runtime/JSGlobalData.cpp \
94 runtime/JSGlobalObject.cpp \
95 runtime/JSStaticScopeObject.cpp \
96 runtime/JSVariableObject.cpp \
97 runtime/JSActivation.cpp \
98 runtime/JSNotAnObject.cpp \
99 runtime/JSONObject.cpp \
100 runtime/LiteralParser.cpp \
101 runtime/TimeoutChecker.cpp \
102 bytecode/CodeBlock.cpp \
103 bytecode/StructureStubInfo.cpp \
104 bytecode/JumpTable.cpp \
105 assembler/ARMAssembler.cpp \
106 jit/JIT.cpp \
107 jit/JITCall.cpp \
108 jit/JITArithmetic.cpp \
109 jit/JITOpcodes.cpp \
110 jit/JITPropertyAccess.cpp \
111 jit/ExecutableAllocator.cpp \
112 jit/JITStubs.cpp \
113 bytecompiler/BytecodeGenerator.cpp \
114 runtime/ExceptionHelpers.cpp \
115 runtime/JSPropertyNameIterator.cpp \
116 interpreter/Interpreter.cpp \
117 bytecode/Opcode.cpp \
118 bytecode/SamplingTool.cpp \
119 yarr/RegexCompiler.cpp \
120 yarr/RegexInterpreter.cpp \
121 yarr/RegexJIT.cpp \
122 interpreter/RegisterFile.cpp
123
124win32-*: SOURCES += jit/ExecutableAllocatorWin.cpp
125else: SOURCES += jit/ExecutableAllocatorPosix.cpp
126
127# AllInOneFile.cpp helps gcc analize and optimize code
128# Other compilers may be able to do this at link time
129SOURCES += \
130 runtime/ArgList.cpp \
131 runtime/Arguments.cpp \
132 runtime/ArrayConstructor.cpp \
133 runtime/ArrayPrototype.cpp \
134 runtime/BooleanConstructor.cpp \
135 runtime/BooleanObject.cpp \
136 runtime/BooleanPrototype.cpp \
137 runtime/CallData.cpp \
138 runtime/Collector.cpp \
139 runtime/CommonIdentifiers.cpp \
140 runtime/ConstructData.cpp \
141 wtf/CurrentTime.cpp \
142 runtime/DateConstructor.cpp \
143 runtime/DateConversion.cpp \
144 runtime/DateInstance.cpp \
145 runtime/DatePrototype.cpp \
146 debugger/Debugger.cpp \
147 debugger/DebuggerCallFrame.cpp \
148 debugger/DebuggerActivation.cpp \
149 wtf/dtoa.cpp \
150 runtime/Error.cpp \
151 runtime/ErrorConstructor.cpp \
152 runtime/ErrorInstance.cpp \
153 runtime/ErrorPrototype.cpp \
154 interpreter/CallFrame.cpp \
155 runtime/FunctionConstructor.cpp \
156 runtime/FunctionPrototype.cpp \
157 runtime/GetterSetter.cpp \
158 runtime/GlobalEvalFunction.cpp \
159 runtime/Identifier.cpp \
160 runtime/InternalFunction.cpp \
161 runtime/Completion.cpp \
162 runtime/JSArray.cpp \
163 runtime/JSByteArray.cpp \
164 runtime/JSCell.cpp \
165 runtime/JSFunction.cpp \
166 runtime/JSGlobalObjectFunctions.cpp \
167 runtime/JSImmediate.cpp \
168 runtime/JSLock.cpp \
169 runtime/JSNumberCell.cpp \
170 runtime/JSObject.cpp \
171 runtime/JSString.cpp \
172 runtime/JSValue.cpp \
173 runtime/JSWrapperObject.cpp \
174 parser/Lexer.cpp \
175 runtime/Lookup.cpp \
176 runtime/MathObject.cpp \
177 runtime/NativeErrorConstructor.cpp \
178 runtime/NativeErrorPrototype.cpp \
179 parser/Nodes.cpp \
180 runtime/NumberConstructor.cpp \
181 runtime/NumberObject.cpp \
182 runtime/NumberPrototype.cpp \
183 runtime/ObjectConstructor.cpp \
184 runtime/ObjectPrototype.cpp \
185 runtime/Operations.cpp \
186 parser/Parser.cpp \
187 parser/ParserArena.cpp \
188 runtime/PropertyNameArray.cpp \
189 runtime/PropertySlot.cpp \
190 runtime/PrototypeFunction.cpp \
191 runtime/RegExp.cpp \
192 runtime/RegExpConstructor.cpp \
193 runtime/RegExpObject.cpp \
194 runtime/RegExpPrototype.cpp \
195 runtime/ScopeChain.cpp \
196 runtime/SmallStrings.cpp \
197 runtime/StringConstructor.cpp \
198 runtime/StringObject.cpp \
199 runtime/StringPrototype.cpp \
200 runtime/Structure.cpp \
201 runtime/StructureChain.cpp \
202 runtime/UString.cpp \
203 profiler/HeavyProfile.cpp \
204 profiler/Profile.cpp \
205 profiler/ProfileGenerator.cpp \
206 profiler/ProfileNode.cpp \
207 profiler/Profiler.cpp \
208 profiler/TreeProfile.cpp \
209 wtf/DateMath.cpp \
210 wtf/FastMalloc.cpp \
211 wtf/Threading.cpp \
212 wtf/qt/MainThreadQt.cpp
213
214!contains(DEFINES, ENABLE_SINGLE_THREADED=1) {
215 SOURCES += wtf/qt/ThreadingQt.cpp
216} else {
217 DEFINES += ENABLE_JSC_MULTIPLE_THREADS=0
218 SOURCES += wtf/ThreadingNone.cpp
219}
220
221# GENERATOR 1-A: LUT creator
222lut.output = $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}${QMAKE_FILE_BASE}.lut.h
223lut.commands = perl $$PWD/create_hash_table ${QMAKE_FILE_NAME} -i > ${QMAKE_FILE_OUT}
224lut.depend = ${QMAKE_FILE_NAME}
225lut.input = LUT_FILES
226lut.CONFIG += no_link
227addExtraCompiler(lut)
228
229# GENERATOR 1-B: particular LUT creator (for 1 file only)
230keywordlut.output = $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}Lexer.lut.h
231keywordlut.commands = perl $$PWD/create_hash_table ${QMAKE_FILE_NAME} -i > ${QMAKE_FILE_OUT}
232keywordlut.depend = ${QMAKE_FILE_NAME}
233keywordlut.input = KEYWORDLUT_FILES
234keywordlut.CONFIG += no_link
235addExtraCompiler(keywordlut)
236
237# GENERATOR 2: bison grammar
238jscbison.output = $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}${QMAKE_FILE_BASE}.cpp
239jscbison.commands = bison -d -p jscyy ${QMAKE_FILE_NAME} -o $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}${QMAKE_FILE_BASE}.tab.c && $(MOVE) $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}${QMAKE_FILE_BASE}.tab.c ${QMAKE_FILE_OUT} && $(MOVE) $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}${QMAKE_FILE_BASE}.tab.h $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}${QMAKE_FILE_BASE}.h
240jscbison.depend = ${QMAKE_FILE_NAME}
241jscbison.input = JSCBISON
242jscbison.variable_out = GENERATED_SOURCES
243jscbison.dependency_type = TYPE_C
244jscbison.CONFIG = target_predeps
245addExtraCompilerWithHeader(jscbison)
246
Note: See TracBrowser for help on using the repository browser.