Ignore:
Timestamp:
Jul 25, 2008, 3:55:33 AM (17 years ago)
Author:
Simon Hausmann
Message:

2008-07-25 Simon Hausmann <Simon Hausmann>

Discussed with and rubber-stamped by Lars.

Fix the build system for the Qt port.

Recent JavaScriptCore changes require the addition of JavaScriptCore/API to the
include search path. With a build process that combines JavaScriptCore and
WebCore in one build process/Makefile the existance of
JavaScriptCore/API/Node.h and WebCore/dom/Node.h causes include conflicts.

This commit solves this by introducing a separate build of JavaScriptCore into
a static library.

As a result of the split-up a race-condition due to broken dependencies of
regular source files to header files of generated sources showed up very
frequently when doing parallel builds (which the buildbot does). This commit at
the same time tries to address the dependency problem by making the
addExtraCompiler() function also generate a pseudo extra compiler that
represents the header file output, so that qmake is aware of the creation of
the header file for dependency calculation.

At the same time I removed a lot of cruft from the pro files to ease maintenance.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/JavaScriptCore.pri

    r35150 r35335  
    33
    44INCLUDEPATH += tmp
    5 INCLUDEPATH += $$PWD $$PWD/kjs $$PWD/wtf $$PWD/wtf/unicode $$PWD/VM $$PWD/profiler
    6 DEPENDPATH += $$PWD $$PWD/kjs $$PWD/wtf $$PWD/wtf/unicode $$PWD/VM $$PWD/profiler
    7 DEFINES -= KJS_IDENTIFIER_HIDE_GLOBALS
     5INCLUDEPATH += $$PWD $$PWD/kjs $$PWD/wtf $$PWD/wtf/unicode $$PWD/VM $$PWD/profiler $$PWD/API $$PWD/.. \
     6               $$PWD/ForwardingHeaders
    87DEFINES += BUILDING_QT__
    98
    10 win32-msvc*: INCLUDEPATH += $$PWD/os-win32
     9isEmpty(GENERATED_SOURCES_DIR):GENERATED_SOURCES_DIR = tmp
     10GENERATED_SOURCES_DIR_SLASH = $$GENERATED_SOURCES_DIR/
     11win32-*: GENERATED_SOURCES_DIR_SLASH ~= s|/|\|
    1112
    12 isEmpty(GENERATED_SOURCES_DIR):GENERATED_SOURCES_DIR = tmp
    1313
    1414include(pcre/pcre.pri)
     
    143143    wtf/qt/MainThreadQt.cpp
    144144
    145 !CONFIG(QTDIR_build) {
    146     defineTest(addExtraCompiler) {
    147         QMAKE_EXTRA_COMPILERS += $$1
    148         generated_files.depends += compiler_$${1}_make_all
    149         export(QMAKE_EXTRA_COMPILERS)
    150         export(generated_files.depends)
    151         return(true)
    152     }
    153 }
    154 
    155145# GENERATOR 1-A: LUT creator
    156146lut.output = $$GENERATED_SOURCES_DIR/${QMAKE_FILE_BASE}.lut.h
     
    177167kjsbison.dependency_type = TYPE_C
    178168kjsbison.CONFIG = target_predeps
    179 kjsbison.clean = ${QMAKE_FILE_OUT} ${QMAKE_VAR_GENERATED_SOURCES_DIR}${QMAKE_FILE_BASE}.h
    180 addExtraCompiler(kjsbison)
     169addExtraCompilerWithHeader(kjsbison)
Note: See TracChangeset for help on using the changeset viewer.