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

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

Revert "2009-05-11 Jan Michael Alonzo <[email protected]>"

This reverts commit r43485 as it fails the mac bots.

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