Reviewed by Maciej
[WebKit-https.git] / JavaScriptCore / kjs / kjs.pro
1 LANGUAGE = C++
2 TARGET = kjs
3 TEMPLATE = lib
4 CONFIG += qt warn_on debug static
5 QT -= gui
6
7 unix {
8         !system(which perl >/dev/null 2>&1):error("Build requires perl.")
9         !exists(lexer.lut.h):system(perl create_hash_table keywords.table -i >lexer.lut.h)
10         !exists(array_object.lut.h):system(perl create_hash_table array_object.cpp -i >array_object.lut.h)
11         !exists(math_object.lut.h):system(perl create_hash_table math_object.cpp -i >math_object.lut.h)
12         !exists(date_object.lut.h):system(perl create_hash_table date_object.cpp -i >date_object.lut.h)
13         !exists(number_object.lut.h):system(perl create_hash_table number_object.cpp -i >number_object.lut.h)
14         !exists(string_object.lut.h):system(perl create_hash_table string_object.cpp -i >string_object.lut.h)
15         !exists(regexp_object.lut.h):system(perl create_hash_table regexp_object.cpp -i >regexp_object.lut.h)
16 }
17
18 # QMakes YACC support is strange
19 YACCSOURCES += grammar.y
20
21 SOURCES += \
22         ../kxmlcore/FastMalloc.cpp \
23         ../kxmlcore/TCSystemAlloc.cpp \
24         array_object.cpp \
25         function_object.cpp \
26         nodes2string.cpp \
27         reference.cpp \
28         bool_object.cpp \
29         identifier.cpp \
30         nodes.cpp \
31         reference_list.cpp \
32         collector.cpp \
33         internal.cpp \
34         number_object.cpp \
35         regexp.cpp \
36         date_object.cpp \
37         interpreter.cpp \
38         object.cpp \
39         regexp_object.cpp \
40         debugger.cpp \
41         object_object.cpp \
42         scope_chain.cpp \
43         dtoa.cpp \
44         lexer.cpp \
45         operations.cpp \
46         string_object.cpp \
47         error_object.cpp \
48         list.cpp \
49         property_map.cpp \
50         fpconst.cpp \
51         lookup.cpp \
52         property_slot.cpp \
53         ustring.cpp \
54         function.cpp \
55         math_object.cpp \
56         value.cpp
57
58 !macx:unix {
59         INCLUDEPATH += .. ../pcre ../kxmlcore
60         MOC_DIR = .moc
61         OBJECTS_DIR = .obj
62         QMAKE_CXXFLAGS_DEBUG += -ansi
63 }
64
65 win32 {
66         INCLUDEPATH += .. ../pcre ../kxmlcore ../icu
67         QMAKE_CXXFLAGS_RELEASE += /Zm1000
68         QMAKE_CXXFLAGS_DEBUG += /Zm1000
69 }
70