Changeset 27958 in webkit for trunk/JavaScriptCore


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.

Location:
trunk/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r27954 r27958  
     12007-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
    1142007-11-20  Mark Rowe  <[email protected]>
    215
  • 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)
  • trunk/JavaScriptCore/pcre/pcre.pri

    r27686 r27958  
    1515    dftables.cpp
    1616
     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
    1727# GENERATOR: "chartables.c": compile and execute the chartables generator (and add it to sources)
    1828ctgen.output = tmp/chartables.c
     
    2333ctgen.dependency_type = TYPE_C
    2434ctgen.clean = ${QMAKE_FILE_OUT} ${QMAKE_VAR_OBJECTS_DIR_WTR}${QMAKE_FILE_BASE}
    25 QMAKE_EXTRA_COMPILERS += ctgen
     35addExtraCompiler(ctgen)
Note: See TracChangeset for help on using the changeset viewer.