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

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

2009-02-12 Simon Hausmann <[email protected]>

Rubber-stamped by Lars.

Re-enable the JIT in the Qt build with -fno-stack-protector on Linux.

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 :(
17CONFIG(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 # Require gcc >= 4.1
20 linux-g++*:greaterThan(QT_GCC_MAJOR_VERSION,3):greaterThan(QT_GCC_MINOR_VERSION,0) {
21 DEFINES += $$JIT_DEFINES WTF_USE_JIT_STUB_ARGUMENT_VA_LIST
22 QMAKE_CXXFLAGS += -fno-stack-protector
23 QMAKE_CFLAGS += -fno-stack-protector
24 }
25 win32-msvc* {
26 DEFINES += $$JIT_DEFINES WTF_USE_JIT_STUB_ARGUMENT_REGISTER
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/ByteArray.cpp \
50 wtf/HashTable.cpp \
51 wtf/MainThread.cpp \
52 wtf/RandomNumber.cpp \
53 wtf/RefCountedLeakCounter.cpp \
54 wtf/TypeTraits.cpp \
55 wtf/unicode/CollatorDefault.cpp \
56 wtf/unicode/icu/CollatorICU.cpp \
57 wtf/unicode/UTF8.cpp \
58 API/JSBase.cpp \
59 API/JSCallbackConstructor.cpp \
60 API/JSCallbackFunction.cpp \
61 API/JSCallbackObject.cpp \
62 API/JSClassRef.cpp \
63 API/JSContextRef.cpp \
64 API/JSObjectRef.cpp \
65 API/JSStringRef.cpp \
66 API/JSValueRef.cpp \
67 API/OpaqueJSString.cpp \
68 runtime/InitializeThreading.cpp \
69 runtime/JSGlobalData.cpp \
70 runtime/JSGlobalObject.cpp \
71 runtime/JSStaticScopeObject.cpp \
72 runtime/JSVariableObject.cpp \
73 runtime/JSActivation.cpp \
74 runtime/JSNotAnObject.cpp \
75 bytecode/CodeBlock.cpp \
76 bytecode/StructureStubInfo.cpp \
77 bytecode/JumpTable.cpp \
78 jit/JIT.cpp \
79 jit/JITCall.cpp \
80 jit/JITArithmetic.cpp \
81 jit/JITPropertyAccess.cpp \
82 jit/ExecutableAllocator.cpp \
83 bytecompiler/BytecodeGenerator.cpp \
84 runtime/ExceptionHelpers.cpp \
85 runtime/JSPropertyNameIterator.cpp \
86 interpreter/Interpreter.cpp \
87 bytecode/Opcode.cpp \
88 bytecode/SamplingTool.cpp \
89 wrec/CharacterClass.cpp \
90 wrec/CharacterClassConstructor.cpp \
91 wrec/WREC.cpp \
92 wrec/WRECFunctors.cpp \
93 wrec/WRECGenerator.cpp \
94 wrec/WRECParser.cpp \
95 interpreter/RegisterFile.cpp
96
97win32-*: SOURCES += jit/ExecutableAllocatorWin.cpp
98else: SOURCES += jit/ExecutableAllocatorPosix.cpp
99
100# AllInOneFile.cpp helps gcc analize and optimize code
101# Other compilers may be able to do this at link time
102SOURCES += \
103 runtime/ArgList.cpp \
104 runtime/Arguments.cpp \
105 runtime/ArrayConstructor.cpp \
106 runtime/ArrayPrototype.cpp \
107 runtime/BooleanConstructor.cpp \
108 runtime/BooleanObject.cpp \
109 runtime/BooleanPrototype.cpp \
110 runtime/CallData.cpp \
111 runtime/Collector.cpp \
112 runtime/CommonIdentifiers.cpp \
113 runtime/ConstructData.cpp \
114 wtf/CurrentTime.cpp \
115 runtime/DateConstructor.cpp \
116 runtime/DateInstance.cpp \
117 runtime/DateMath.cpp \
118 runtime/DatePrototype.cpp \
119 debugger/Debugger.cpp \
120 debugger/DebuggerCallFrame.cpp \
121 debugger/DebuggerActivation.cpp \
122 wtf/dtoa.cpp \
123 runtime/Error.cpp \
124 runtime/ErrorConstructor.cpp \
125 runtime/ErrorInstance.cpp \
126 runtime/ErrorPrototype.cpp \
127 interpreter/CallFrame.cpp \
128 runtime/FunctionConstructor.cpp \
129 runtime/FunctionPrototype.cpp \
130 runtime/GetterSetter.cpp \
131 runtime/GlobalEvalFunction.cpp \
132 runtime/Identifier.cpp \
133 runtime/InternalFunction.cpp \
134 runtime/Completion.cpp \
135 runtime/JSArray.cpp \
136 runtime/JSByteArray.cpp \
137 runtime/JSCell.cpp \
138 runtime/JSFunction.cpp \
139 runtime/JSGlobalObjectFunctions.cpp \
140 runtime/JSImmediate.cpp \
141 runtime/JSLock.cpp \
142 runtime/JSNumberCell.cpp \
143 runtime/JSObject.cpp \
144 runtime/JSString.cpp \
145 runtime/JSValue.cpp \
146 runtime/JSWrapperObject.cpp \
147 parser/Lexer.cpp \
148 runtime/Lookup.cpp \
149 runtime/MathObject.cpp \
150 runtime/NativeErrorConstructor.cpp \
151 runtime/NativeErrorPrototype.cpp \
152 parser/Nodes.cpp \
153 runtime/NumberConstructor.cpp \
154 runtime/NumberObject.cpp \
155 runtime/NumberPrototype.cpp \
156 runtime/ObjectConstructor.cpp \
157 runtime/ObjectPrototype.cpp \
158 runtime/Operations.cpp \
159 parser/Parser.cpp \
160 runtime/PropertyNameArray.cpp \
161 runtime/PropertySlot.cpp \
162 runtime/PrototypeFunction.cpp \
163 runtime/RegExp.cpp \
164 runtime/RegExpConstructor.cpp \
165 runtime/RegExpObject.cpp \
166 runtime/RegExpPrototype.cpp \
167 runtime/ScopeChain.cpp \
168 runtime/SmallStrings.cpp \
169 runtime/StringConstructor.cpp \
170 runtime/StringObject.cpp \
171 runtime/StringPrototype.cpp \
172 runtime/Structure.cpp \
173 runtime/StructureChain.cpp \
174 runtime/UString.cpp \
175 profiler/HeavyProfile.cpp \
176 profiler/Profile.cpp \
177 profiler/ProfileGenerator.cpp \
178 profiler/ProfileNode.cpp \
179 profiler/Profiler.cpp \
180 profiler/TreeProfile.cpp \
181 wtf/FastMalloc.cpp \
182 wtf/Threading.cpp \
183 wtf/ThreadingQt.cpp \
184 wtf/qt/MainThreadQt.cpp
185
186# GENERATOR 1-A: LUT creator
187lut.output = $$GENERATED_SOURCES_DIR/${QMAKE_FILE_BASE}.lut.h
188lut.commands = perl $$PWD/create_hash_table ${QMAKE_FILE_NAME} -i > ${QMAKE_FILE_OUT}
189lut.depend = ${QMAKE_FILE_NAME}
190lut.input = LUT_FILES
191lut.CONFIG += no_link
192addExtraCompiler(lut)
193
194# GENERATOR 1-B: particular LUT creator (for 1 file only)
195keywordlut.output = $$GENERATED_SOURCES_DIR/Lexer.lut.h
196keywordlut.commands = perl $$PWD/create_hash_table ${QMAKE_FILE_NAME} -i > ${QMAKE_FILE_OUT}
197keywordlut.depend = ${QMAKE_FILE_NAME}
198keywordlut.input = KEYWORDLUT_FILES
199keywordlut.CONFIG += no_link
200addExtraCompiler(keywordlut)
201
202# GENERATOR 2: bison grammar
203jscbison.output = $$GENERATED_SOURCES_DIR/${QMAKE_FILE_BASE}.cpp
204jscbison.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
205jscbison.depend = ${QMAKE_FILE_NAME}
206jscbison.input = JSCBISON
207jscbison.variable_out = GENERATED_SOURCES
208jscbison.dependency_type = TYPE_C
209jscbison.CONFIG = target_predeps
210addExtraCompilerWithHeader(jscbison)
211
Note: See TracBrowser for help on using the repository browser.