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

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

JavaScriptCore
2009-05-11 Csaba Osztrogonac <[email protected]>

Reviewed by Holger Freyther.

https://bugs.webkit.org/show_bug.cgi?id=24284

  • JavaScriptCore.pri: coding style modified
  • jsc.pro: duplicated values removed from INCLUDEPATH, DEFINES

WebCore
2009-05-11 Csaba Osztrogonac <[email protected]>

Reviewed by Holger Freyther.

https://bugs.webkit.org/show_bug.cgi?id=24284

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