1 # -------------------------------------------------------------------
2 # Derived sources for JavaScriptSource
4 # See 'Tools/qmake/README' for an overview of the build system
5 # -------------------------------------------------------------------
10 runtime/ArrayConstructor.cpp \
11 runtime/ArrayPrototype.cpp \
12 runtime/BooleanPrototype.cpp \
13 runtime/DateConstructor.cpp \
14 runtime/DatePrototype.cpp \
15 runtime/ErrorPrototype.cpp \
16 runtime/JSGlobalObject.cpp \
17 runtime/JSONObject.cpp \
18 runtime/MathObject.cpp \
19 runtime/NumberConstructor.cpp \
20 runtime/NumberPrototype.cpp \
21 runtime/ObjectConstructor.cpp \
22 runtime/ObjectPrototype.cpp \
23 runtime/RegExpConstructor.cpp \
24 runtime/RegExpObject.cpp \
25 runtime/RegExpPrototype.cpp \
26 runtime/StringConstructor.cpp \
27 runtime/StringPrototype.cpp \
35 # GENERATOR 1-A: LUT creator
36 lut.output = ${QMAKE_FILE_BASE}.lut.h
38 lut.script = $$PWD/create_hash_table
39 lut.commands = perl $$lut.script ${QMAKE_FILE_NAME} -i > ${QMAKE_FILE_OUT}
40 lut.depends = ${QMAKE_FILE_NAME}
43 # GENERATOR 1-B: particular LUT creator (for 1 file only)
44 keywordlut.output = Lexer.lut.h
45 keywordlut.input = KEYWORDLUT_FILES
46 keywordlut.script = $$PWD/create_hash_table
47 keywordlut.commands = perl $$keywordlut.script ${QMAKE_FILE_NAME} -i > ${QMAKE_FILE_OUT}
48 keywordlut.depends = ${QMAKE_FILE_NAME}
49 GENERATORS += keywordlut
51 # GENERATOR 2-A: JIT Stub functions for RVCT
52 rvctstubs.output = Generated${QMAKE_FILE_BASE}_RVCT.h
53 rvctstubs.script = $$PWD/create_jit_stubs
54 rvctstubs.commands = perl -i $$rvctstubs.script --prefix RVCT ${QMAKE_FILE_NAME} > ${QMAKE_FILE_OUT}
55 rvctstubs.depends = ${QMAKE_FILE_NAME}
56 rvctstubs.input = JIT_STUB_FILES
57 rvctstubs.CONFIG += no_link
58 GENERATORS += rvctstubs
60 # GENERATOR 2-B: JIT Stub functions for MSVC
61 msvcstubs.output = Generated${QMAKE_FILE_BASE}_MSVC.asm
62 msvcstubs.script = $$PWD/create_jit_stubs
63 msvcstubs.commands = perl -i $$msvcstubs.script --prefix MSVC ${QMAKE_FILE_NAME} > ${QMAKE_FILE_OUT}
64 msvcstubs.depends = ${QMAKE_FILE_NAME}
65 msvcstubs.input = JIT_STUB_FILES
66 msvcstubs.CONFIG += no_link
67 GENERATORS += msvcstubs
69 #GENERATOR: "RegExpJitTables.h": tables used by Yarr
70 retgen.output = RegExpJitTables.h
71 retgen.script = $$PWD/create_regex_tables
72 retgen.input = retgen.script
73 retgen.commands = python $$retgen.script > ${QMAKE_FILE_OUT}
76 #GENERATOR: "KeywordLookup.h": decision tree used by the lexer
77 klgen.output = KeywordLookup.h
78 klgen.script = $$PWD/KeywordLookupGenerator.py
79 klgen.input = KEYWORDLUT_FILES
80 klgen.commands = python $$klgen.script ${QMAKE_FILE_NAME} > ${QMAKE_FILE_OUT}