Changeset 27958 in webkit for trunk/JavaScriptCore
- Timestamp:
- Nov 22, 2007, 2:10:07 AM (18 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r27954 r27958 1 2007-11-22 Simon Hausmann <[email protected]> 2 3 Reviewed by George. 4 5 Centralize the setup for all the extra compilers in a addExtraCompiler function. 6 7 This allows adding a "generated_files" target that builds all generated files using "make generated_files". 8 For the build inside Qt we do not generate actual rules for the extra compilers but instead 9 do the variable substitution of compiler.output manually and add the generated sources to SOURCES. 10 11 * JavaScriptCore.pri: 12 * pcre/pcre.pri: 13 1 14 2007-11-20 Mark Rowe <[email protected]> 2 15 -
trunk/JavaScriptCore/JavaScriptCore.pri
r27746 r27958 101 101 bindings/qt/qt_runtime.cpp 102 102 103 !CONFIG(QTDIR_build) { 104 defineTest(addExtraCompiler) { 105 QMAKE_EXTRA_COMPILERS += $$1 106 generated_files.depends += compiler_$${1}_make_all 107 export(QMAKE_EXTRA_COMPILERS) 108 export(generated_files.depends) 109 return(true) 110 } 111 } 103 112 104 113 # GENERATOR 1-A: LUT creator … … 108 117 lut.input = LUT_FILES 109 118 lut.CONFIG += no_link 110 QMAKE_EXTRA_COMPILERS += lut 119 addExtraCompiler(lut) 111 120 112 121 # GENERATOR 1-B: particular LUT creator (for 1 file only) … … 116 125 keywordlut.input = KEYWORDLUT_FILES 117 126 keywordlut.CONFIG += no_link 118 QMAKE_EXTRA_COMPILERS += keywordlut 127 addExtraCompiler(keywordlut) 119 128 120 129 # GENERATOR 2: bison grammar … … 127 136 kjsbison.CONFIG = target_predeps 128 137 kjsbison.clean = ${QMAKE_FILE_OUT} ${QMAKE_VAR_OBJECTS_DIR_WTR}${QMAKE_FILE_BASE}.h 129 QMAKE_EXTRA_COMPILERS += kjsbison 138 addExtraCompiler(kjsbison) -
trunk/JavaScriptCore/pcre/pcre.pri
r27686 r27958 15 15 dftables.cpp 16 16 17 !CONFIG(QTDIR_build) { 18 defineTest(addExtraCompiler) { 19 QMAKE_EXTRA_COMPILERS += $$1 20 generated_files.depends += compiler_$${1}_make_all 21 export(QMAKE_EXTRA_COMPILERS) 22 export(generated_files.depends) 23 return(true) 24 } 25 } 26 17 27 # GENERATOR: "chartables.c": compile and execute the chartables generator (and add it to sources) 18 28 ctgen.output = tmp/chartables.c … … 23 33 ctgen.dependency_type = TYPE_C 24 34 ctgen.clean = ${QMAKE_FILE_OUT} ${QMAKE_VAR_OBJECTS_DIR_WTR}${QMAKE_FILE_BASE} 25 QMAKE_EXTRA_COMPILERS += ctgen 35 addExtraCompiler(ctgen)
Note:
See TracChangeset
for help on using the changeset viewer.