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

Last change on this file since 47186 was 47035, checked in by [email protected], 16 years ago

Buildfix for Qt-win platforms.

Patch by Csaba Osztrogonac <[email protected]> on 2009-08-11
Reviewed by Tor Arne Vestbø.

  • JavaScriptCore.pri: Choose MarkStackPosix.cpp or MarkStackWin.cpp depend on platform.
File size: 7.5 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/MarkStack.cpp \
102 runtime/TimeoutChecker.cpp \
103 bytecode/CodeBlock.cpp \
104 bytecode/StructureStubInfo.cpp \
105 bytecode/JumpTable.cpp \
106 assembler/ARMAssembler.cpp \
107 jit/JIT.cpp \
108 jit/JITCall.cpp \
109 jit/JITArithmetic.cpp \
110 jit/JITOpcodes.cpp \
111 jit/JITPropertyAccess.cpp \
112 jit/ExecutableAllocator.cpp \
113 jit/JITStubs.cpp \
114 bytecompiler/BytecodeGenerator.cpp \
115 runtime/ExceptionHelpers.cpp \
116 runtime/JSPropertyNameIterator.cpp \
117 interpreter/Interpreter.cpp \
118 bytecode/Opcode.cpp \
119 bytecode/SamplingTool.cpp \
120 yarr/RegexCompiler.cpp \
121 yarr/RegexInterpreter.cpp \
122 yarr/RegexJIT.cpp \
123 interpreter/RegisterFile.cpp
124
125win32-* {
126 SOURCES += jit/ExecutableAllocatorWin.cpp \
127 runtime/MarkStackWin.cpp
128} else {
129 SOURCES += jit/ExecutableAllocatorPosix.cpp \
130 runtime/MarkStackPosix.cpp
131}
132
133# AllInOneFile.cpp helps gcc analize and optimize code
134# Other compilers may be able to do this at link time
135SOURCES += \
136 runtime/ArgList.cpp \
137 runtime/Arguments.cpp \
138 runtime/ArrayConstructor.cpp \
139 runtime/ArrayPrototype.cpp \
140 runtime/BooleanConstructor.cpp \
141 runtime/BooleanObject.cpp \
142 runtime/BooleanPrototype.cpp \
143 runtime/CallData.cpp \
144 runtime/Collector.cpp \
145 runtime/CommonIdentifiers.cpp \
146 runtime/ConstructData.cpp \
147 wtf/CurrentTime.cpp \
148 runtime/DateConstructor.cpp \
149 runtime/DateConversion.cpp \
150 runtime/DateInstance.cpp \
151 runtime/DatePrototype.cpp \
152 debugger/Debugger.cpp \
153 debugger/DebuggerCallFrame.cpp \
154 debugger/DebuggerActivation.cpp \
155 wtf/dtoa.cpp \
156 runtime/Error.cpp \
157 runtime/ErrorConstructor.cpp \
158 runtime/ErrorInstance.cpp \
159 runtime/ErrorPrototype.cpp \
160 interpreter/CallFrame.cpp \
161 runtime/FunctionConstructor.cpp \
162 runtime/FunctionPrototype.cpp \
163 runtime/GetterSetter.cpp \
164 runtime/GlobalEvalFunction.cpp \
165 runtime/Identifier.cpp \
166 runtime/InternalFunction.cpp \
167 runtime/Completion.cpp \
168 runtime/JSArray.cpp \
169 runtime/JSAPIValueWrapper.cpp \
170 runtime/JSByteArray.cpp \
171 runtime/JSCell.cpp \
172 runtime/JSFunction.cpp \
173 runtime/JSGlobalObjectFunctions.cpp \
174 runtime/JSImmediate.cpp \
175 runtime/JSLock.cpp \
176 runtime/JSNumberCell.cpp \
177 runtime/JSObject.cpp \
178 runtime/JSString.cpp \
179 runtime/JSValue.cpp \
180 runtime/JSWrapperObject.cpp \
181 parser/Lexer.cpp \
182 runtime/Lookup.cpp \
183 runtime/MathObject.cpp \
184 runtime/NativeErrorConstructor.cpp \
185 runtime/NativeErrorPrototype.cpp \
186 parser/Nodes.cpp \
187 runtime/NumberConstructor.cpp \
188 runtime/NumberObject.cpp \
189 runtime/NumberPrototype.cpp \
190 runtime/ObjectConstructor.cpp \
191 runtime/ObjectPrototype.cpp \
192 runtime/Operations.cpp \
193 parser/Parser.cpp \
194 parser/ParserArena.cpp \
195 runtime/PropertyNameArray.cpp \
196 runtime/PropertySlot.cpp \
197 runtime/PrototypeFunction.cpp \
198 runtime/RegExp.cpp \
199 runtime/RegExpConstructor.cpp \
200 runtime/RegExpObject.cpp \
201 runtime/RegExpPrototype.cpp \
202 runtime/ScopeChain.cpp \
203 runtime/SmallStrings.cpp \
204 runtime/StringConstructor.cpp \
205 runtime/StringObject.cpp \
206 runtime/StringPrototype.cpp \
207 runtime/Structure.cpp \
208 runtime/StructureChain.cpp \
209 runtime/UString.cpp \
210 profiler/HeavyProfile.cpp \
211 profiler/Profile.cpp \
212 profiler/ProfileGenerator.cpp \
213 profiler/ProfileNode.cpp \
214 profiler/Profiler.cpp \
215 profiler/TreeProfile.cpp \
216 wtf/DateMath.cpp \
217 wtf/FastMalloc.cpp \
218 wtf/Threading.cpp \
219 wtf/qt/MainThreadQt.cpp
220
221!contains(DEFINES, ENABLE_SINGLE_THREADED=1) {
222 SOURCES += wtf/qt/ThreadingQt.cpp
223} else {
224 DEFINES += ENABLE_JSC_MULTIPLE_THREADS=0
225 SOURCES += wtf/ThreadingNone.cpp
226}
227
228# GENERATOR 1-A: LUT creator
229lut.output = $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}${QMAKE_FILE_BASE}.lut.h
230lut.commands = perl $$PWD/create_hash_table ${QMAKE_FILE_NAME} -i > ${QMAKE_FILE_OUT}
231lut.depend = ${QMAKE_FILE_NAME}
232lut.input = LUT_FILES
233lut.CONFIG += no_link
234addExtraCompiler(lut)
235
236# GENERATOR 1-B: particular LUT creator (for 1 file only)
237keywordlut.output = $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}Lexer.lut.h
238keywordlut.commands = perl $$PWD/create_hash_table ${QMAKE_FILE_NAME} -i > ${QMAKE_FILE_OUT}
239keywordlut.depend = ${QMAKE_FILE_NAME}
240keywordlut.input = KEYWORDLUT_FILES
241keywordlut.CONFIG += no_link
242addExtraCompiler(keywordlut)
243
244# GENERATOR 2: bison grammar
245jscbison.output = $${GENERATED_SOURCES_DIR}$${QMAKE_DIR_SEP}${QMAKE_FILE_BASE}.cpp
246jscbison.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
247jscbison.depend = ${QMAKE_FILE_NAME}
248jscbison.input = JSCBISON
249jscbison.variable_out = GENERATED_SOURCES
250jscbison.dependency_type = TYPE_C
251jscbison.CONFIG = target_predeps
252addExtraCompilerWithHeader(jscbison)
253
Note: See TracBrowser for help on using the repository browser.