2007-06-20 Mark Rowe <mrowe@apple.com>
[WebKit-https.git] / JavaScriptCore / JavaScriptCore.pri
1 # JavaScriptCore - Qt4 build info
2 VPATH += $$PWD
3
4 INCLUDEPATH += tmp
5 INCLUDEPATH += $$PWD $$PWD/kjs $$PWD/bindings $$PWD/bindings/c $$PWD/wtf
6 DEFINES -= KJS_IDENTIFIER_HIDE_GLOBALS 
7 qt-port:INCLUDEPATH += $$PWD/bindings/qt
8 qt-port:DEFINES += BUILDING_QT__
9
10 include(pcre/pcre.pri)
11
12 LUT_FILES += \
13     kjs/date_object.cpp \
14     kjs/number_object.cpp \
15     kjs/string_object.cpp \
16     kjs/array_object.cpp \
17     kjs/math_object.cpp \
18     kjs/regexp_object.cpp
19
20 KEYWORDLUT_FILES += \
21     kjs/keywords.table
22
23 KJSBISON += \
24     kjs/grammar.y
25
26 SOURCES += \
27     wtf/TCSystemAlloc.cpp \
28     wtf/Assertions.cpp \
29     wtf/HashTable.cpp \
30     wtf/FastMalloc.cpp \
31     bindings/NP_jsobject.cpp \
32     bindings/npruntime.cpp \
33     bindings/runtime_array.cpp \
34     bindings/runtime.cpp \
35     bindings/runtime_method.cpp \
36     bindings/runtime_object.cpp \
37     bindings/runtime_root.cpp \
38     bindings/c/c_class.cpp \
39     bindings/c/c_instance.cpp \
40     bindings/c/c_runtime.cpp \
41     bindings/c/c_utility.cpp \
42     kjs/DateMath.cpp \
43     kjs/JSWrapperObject.cpp \
44     kjs/PropertyNameArray.cpp \
45     kjs/array_object.cpp \
46     kjs/bool_object.cpp \
47     kjs/collector.cpp \
48     kjs/CommonIdentifiers.cpp \
49     kjs/Context.cpp \
50     kjs/date_object.cpp \
51     kjs/debugger.cpp \
52     kjs/dtoa.cpp \
53     kjs/error_object.cpp \
54     kjs/ExecState.cpp \
55     kjs/fpconst.cpp \
56     kjs/function.cpp \
57     kjs/function_object.cpp \
58     kjs/identifier.cpp \
59     kjs/internal.cpp \
60     kjs/interpreter.cpp \
61     kjs/JSImmediate.cpp \
62     kjs/JSLock.cpp \
63     kjs/lexer.cpp \
64     kjs/list.cpp \
65     kjs/lookup.cpp \
66     kjs/math_object.cpp \
67     kjs/nodes.cpp \
68     kjs/nodes2string.cpp \
69     kjs/number_object.cpp \
70     kjs/object.cpp \
71     kjs/object_object.cpp \
72     kjs/operations.cpp \
73     kjs/Parser.cpp \
74     kjs/property_map.cpp \
75     kjs/property_slot.cpp \
76     kjs/regexp.cpp \
77     kjs/regexp_object.cpp \
78     kjs/scope_chain.cpp \
79     kjs/string_object.cpp \
80     kjs/ustring.cpp \
81     kjs/value.cpp
82
83 qt-port:SOURCES += \
84     bindings/qt/qt_class.cpp \
85     bindings/qt/qt_instance.cpp \
86     bindings/qt/qt_runtime.cpp
87
88
89 # GENERATOR 1-A: LUT creator
90 lut.output = tmp/${QMAKE_FILE_BASE}.lut.h
91 lut.commands = perl $$PWD/kjs/create_hash_table ${QMAKE_FILE_NAME} -i > ${QMAKE_FILE_OUT}
92 lut.depend = ${QMAKE_FILE_NAME}
93 lut.input = LUT_FILES
94 lut.CONFIG += no_link
95 QMAKE_EXTRA_COMPILERS += lut
96
97 # GENERATOR 1-B: particular LUT creator (for 1 file only)
98 keywordlut.output = tmp/lexer.lut.h
99 keywordlut.commands = perl $$PWD/kjs/create_hash_table ${QMAKE_FILE_NAME} -i > ${QMAKE_FILE_OUT}
100 keywordlut.depend = ${QMAKE_FILE_NAME}
101 keywordlut.input = KEYWORDLUT_FILES
102 keywordlut.CONFIG += no_link
103 QMAKE_EXTRA_COMPILERS += keywordlut
104
105 # GENERATOR 2: bison grammar
106 kjsbison.output = tmp/${QMAKE_FILE_BASE}.cpp
107 kjsbison.commands = bison -d -p kjsyy ${QMAKE_FILE_NAME} -o ${QMAKE_FILE_BASE}.tab.c && mv ${QMAKE_FILE_BASE}.tab.c ${QMAKE_FILE_OUT} && mv ${QMAKE_FILE_BASE}.tab.h tmp/${QMAKE_FILE_BASE}.h
108 kjsbison.depend = ${QMAKE_FILE_NAME}
109 kjsbison.input = KJSBISON
110 kjsbison.variable_out = GENERATED_SOURCES
111 kjsbison.dependency_type = TYPE_C
112 kjsbison.CONFIG = target_predeps
113 kjsbison.clean = ${QMAKE_FILE_OUT} tmp/${QMAKE_FILE_BASE}.h
114 QMAKE_EXTRA_COMPILERS += kjsbison