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

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

2008-11-17 Geoffrey Garen <[email protected]>

Not reviewed.


Try to fix Qt build.

File size: 5.4 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/VM $$PWD/profiler $$PWD/wrec $$PWD/API $$PWD/.. \
6 $$PWD/ForwardingHeaders $$PWD/bytecode
7DEFINES += BUILDING_QT__
8
9isEmpty(GENERATED_SOURCES_DIR):GENERATED_SOURCES_DIR = tmp
10GENERATED_SOURCES_DIR_SLASH = $$GENERATED_SOURCES_DIR/
11win32-*: GENERATED_SOURCES_DIR_SLASH ~= s|/|\|
12win32-g++: LIBS += -lwinmm
13
14
15include(pcre/pcre.pri)
16
17LUT_FILES += \
18 runtime/DatePrototype.cpp \
19 runtime/NumberConstructor.cpp \
20 runtime/StringPrototype.cpp \
21 runtime/ArrayPrototype.cpp \
22 runtime/MathObject.cpp \
23 runtime/RegExpConstructor.cpp \
24 runtime/RegExpObject.cpp
25
26KEYWORDLUT_FILES += \
27 parser/Keywords.table
28
29KJSBISON += \
30 parser/Grammar.y
31
32SOURCES += \
33 wtf/Assertions.cpp \
34 wtf/HashTable.cpp \
35 wtf/MainThread.cpp \
36 wtf/RefCountedLeakCounter.cpp \
37 wtf/unicode/CollatorDefault.cpp \
38 wtf/unicode/icu/CollatorICU.cpp \
39 wtf/unicode/UTF8.cpp \
40 API/JSBase.cpp \
41 API/JSCallbackConstructor.cpp \
42 API/JSCallbackFunction.cpp \
43 API/JSCallbackObject.cpp \
44 API/JSClassRef.cpp \
45 API/JSContextRef.cpp \
46 API/JSObjectRef.cpp \
47 API/JSStringRef.cpp \
48 API/JSValueRef.cpp \
49 API/OpaqueJSString.cpp \
50 runtime/InitializeThreading.cpp \
51 runtime/JSGlobalData.cpp \
52 runtime/JSGlobalObject.cpp \
53 runtime/JSStaticScopeObject.cpp \
54 runtime/JSVariableObject.cpp \
55 runtime/JSActivation.cpp \
56 runtime/JSNotAnObject.cpp \
57 VM/CodeBlock.cpp \
58 bytecompiler/BytecodeGenerator.cpp \
59 VM/ExceptionHelpers.cpp \
60 runtime/JSPropertyNameIterator.cpp \
61 VM/Machine.cpp \
62 VM/Opcode.cpp \
63 VM/SamplingTool.cpp \
64 VM/RegisterFile.cpp
65
66# AllInOneFile.cpp helps gcc analize and optimize code
67# Other compilers may be able to do this at link time
68SOURCES += \
69 runtime/ArgList.cpp \
70 runtime/Arguments.cpp \
71 runtime/ArrayConstructor.cpp \
72 runtime/ArrayPrototype.cpp \
73 runtime/BooleanConstructor.cpp \
74 runtime/BooleanObject.cpp \
75 runtime/BooleanPrototype.cpp \
76 runtime/CallData.cpp \
77 runtime/Collector.cpp \
78 runtime/CommonIdentifiers.cpp \
79 runtime/ConstructData.cpp \
80 runtime/DateConstructor.cpp \
81 runtime/DateInstance.cpp \
82 runtime/DateMath.cpp \
83 runtime/DatePrototype.cpp \
84 debugger/Debugger.cpp \
85 debugger/DebuggerCallFrame.cpp \
86 wtf/dtoa.cpp \
87 runtime/Error.cpp \
88 runtime/ErrorConstructor.cpp \
89 runtime/ErrorInstance.cpp \
90 runtime/ErrorPrototype.cpp \
91 runtime/ExecState.cpp \
92 runtime/FunctionConstructor.cpp \
93 runtime/FunctionPrototype.cpp \
94 runtime/GetterSetter.cpp \
95 runtime/GlobalEvalFunction.cpp \
96 runtime/Identifier.cpp \
97 runtime/InternalFunction.cpp \
98 runtime/Interpreter.cpp \
99 runtime/JSArray.cpp \
100 runtime/JSCell.cpp \
101 runtime/JSFunction.cpp \
102 runtime/JSGlobalObjectFunctions.cpp \
103 runtime/JSImmediate.cpp \
104 runtime/JSLock.cpp \
105 runtime/JSNumberCell.cpp \
106 runtime/JSObject.cpp \
107 runtime/JSString.cpp \
108 runtime/JSValue.cpp \
109 runtime/JSWrapperObject.cpp \
110 parser/Lexer.cpp \
111 runtime/Lookup.cpp \
112 runtime/MathObject.cpp \
113 runtime/NativeErrorConstructor.cpp \
114 runtime/NativeErrorPrototype.cpp \
115 parser/Nodes.cpp \
116 runtime/NumberConstructor.cpp \
117 runtime/NumberObject.cpp \
118 runtime/NumberPrototype.cpp \
119 runtime/ObjectConstructor.cpp \
120 runtime/ObjectPrototype.cpp \
121 runtime/Operations.cpp \
122 parser/Parser.cpp \
123 runtime/PropertyNameArray.cpp \
124 runtime/PropertySlot.cpp \
125 runtime/PrototypeFunction.cpp \
126 runtime/RegExp.cpp \
127 runtime/RegExpConstructor.cpp \
128 runtime/RegExpObject.cpp \
129 runtime/RegExpPrototype.cpp \
130 runtime/ScopeChain.cpp \
131 runtime/SmallStrings.cpp \
132 runtime/StringConstructor.cpp \
133 runtime/StringObject.cpp \
134 runtime/StringPrototype.cpp \
135 runtime/Structure.cpp \
136 runtime/StructureChain.cpp \
137 runtime/UString.cpp \
138 profiler/HeavyProfile.cpp \
139 profiler/Profile.cpp \
140 profiler/ProfileGenerator.cpp \
141 profiler/ProfileNode.cpp \
142 profiler/Profiler.cpp \
143 profiler/TreeProfile.cpp \
144 wtf/FastMalloc.cpp \
145 wtf/ThreadingQt.cpp \
146 wtf/qt/MainThreadQt.cpp
147
148# GENERATOR 1-A: LUT creator
149lut.output = $$GENERATED_SOURCES_DIR/${QMAKE_FILE_BASE}.lut.h
150lut.commands = perl $$PWD/create_hash_table ${QMAKE_FILE_NAME} -i > ${QMAKE_FILE_OUT}
151lut.depend = ${QMAKE_FILE_NAME}
152lut.input = LUT_FILES
153lut.CONFIG += no_link
154addExtraCompiler(lut)
155
156# GENERATOR 1-B: particular LUT creator (for 1 file only)
157keywordlut.output = $$GENERATED_SOURCES_DIR/Lexer.lut.h
158keywordlut.commands = perl $$PWD/create_hash_table ${QMAKE_FILE_NAME} -i > ${QMAKE_FILE_OUT}
159keywordlut.depend = ${QMAKE_FILE_NAME}
160keywordlut.input = KEYWORDLUT_FILES
161keywordlut.CONFIG += no_link
162addExtraCompiler(keywordlut)
163
164# GENERATOR 2: bison grammar
165kjsbison.output = $$GENERATED_SOURCES_DIR/${QMAKE_FILE_BASE}.cpp
166kjsbison.commands = bison -d -p kjsyy ${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
167kjsbison.depend = ${QMAKE_FILE_NAME}
168kjsbison.input = KJSBISON
169kjsbison.variable_out = GENERATED_SOURCES
170kjsbison.dependency_type = TYPE_C
171kjsbison.CONFIG = target_predeps
172addExtraCompilerWithHeader(kjsbison)
173
174*-g++*:QMAKE_CXXFLAGS_RELEASE -= -O2
175*-g++*:QMAKE_CXXFLAGS_RELEASE += -O3
Note: See TracBrowser for help on using the repository browser.