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

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

Reviewed by Darin Adler.

https://bugs.webkit.org/show_bug.cgi?id=23207
Moved currentTime() to from WebCore to WTF.

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