Ignore:
Timestamp:
Nov 22, 2007, 2:10:07 AM (18 years ago)
Author:
Simon Hausmann
Message:

Centralize the setup for all the extra compilers in a addExtraCompiler function.

This allows adding a "generated_files" target that builds all generated files
using "make generated_files". For the build inside Qt we do not generate
actual rules for the extra compilers but instead do the variable substitution
of compiler.output manually and add the generated sources to SOURCES.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/JavaScriptCore.pri

    r27746 r27958  
    101101    bindings/qt/qt_runtime.cpp
    102102
     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}
    103112
    104113# GENERATOR 1-A: LUT creator
     
    108117lut.input = LUT_FILES
    109118lut.CONFIG += no_link
    110 QMAKE_EXTRA_COMPILERS += lut
     119addExtraCompiler(lut)
    111120
    112121# GENERATOR 1-B: particular LUT creator (for 1 file only)
     
    116125keywordlut.input = KEYWORDLUT_FILES
    117126keywordlut.CONFIG += no_link
    118 QMAKE_EXTRA_COMPILERS += keywordlut
     127addExtraCompiler(keywordlut)
    119128
    120129# GENERATOR 2: bison grammar
     
    127136kjsbison.CONFIG = target_predeps
    128137kjsbison.clean = ${QMAKE_FILE_OUT} ${QMAKE_VAR_OBJECTS_DIR_WTR}${QMAKE_FILE_BASE}.h
    129 QMAKE_EXTRA_COMPILERS += kjsbison
     138addExtraCompiler(kjsbison)
Note: See TracChangeset for help on using the changeset viewer.