1# DerivedSources - qmake build info 2 3CONFIG -= debug_and_release 4 5TEMPLATE = lib 6TARGET = dummy 7 8QMAKE_EXTRA_TARGETS += generated_files 9 10GENERATED_SOURCES_DIR = generated 11 12IDL_BINDINGS += \ 13 InjectedBundle/Bindings/EventSendingController.idl \ 14 InjectedBundle/Bindings/GCController.idl \ 15 InjectedBundle/Bindings/LayoutTestController.idl \ 16 17defineTest(addExtraCompiler) { 18 eval($${1}.CONFIG = target_predeps no_link) 19 eval($${1}.variable_out =) 20 eval($${1}.dependency_type = TYPE_C) 21 22 wkScript = $$eval($${1}.wkScript) 23 eval($${1}.depends += $$wkScript) 24 25 export($${1}.CONFIG) 26 export($${1}.variable_out) 27 export($${1}.dependency_type) 28 export($${1}.depends) 29 30 QMAKE_EXTRA_COMPILERS += $$1 31 generated_files.depends += compiler_$${1}_make_all 32 export(QMAKE_EXTRA_COMPILERS) 33 export(generated_files.depends) 34 return(true) 35} 36 37SRC_ROOT_DIR = $$replace(PWD, /Tools/WebKitTestRunner, "") 38 39# Make sure forwarded headers needed by this project are present 40fwheader_generator.commands = perl $${SRC_ROOT_DIR}/Source/WebKit2/Scripts/generate-forwarding-headers.pl $${SRC_ROOT_DIR}/Tools/WebKitTestRunner $${OUTPUT_DIR}/include qt 41fwheader_generator.depends = $${SRC_ROOT_DIR}/Source/WebKit2/Scripts/generate-forwarding-headers.pl 42generated_files.depends += fwheader_generator 43QMAKE_EXTRA_TARGETS += fwheader_generator 44 45# GENERATOR 1: IDL compiler 46idl.output = $${GENERATED_SOURCES_DIR}/JS${QMAKE_FILE_BASE}.cpp 47idl.input = IDL_BINDINGS 48idl.wkScript = $$PWD/../../Source/WebCore/bindings/scripts/generate-bindings.pl 49idl.commands = perl -I$$PWD/../../Source/WebCore/bindings/scripts -I$$PWD/InjectedBundle/Bindings $$idl.wkScript --defines \"\" --generator TestRunner --include $$PWD/InjectedBundle/Bindings --outputDir $$GENERATED_SOURCES_DIR --preprocessor \"$${QMAKE_MOC} -E\" ${QMAKE_FILE_NAME} 50idl.depends = $$PWD/../../Source/WebCore/bindings/scripts/CodeGenerator.pm \ 51 $$PWD/InjectedBundle/Bindings/CodeGeneratorTestRunner.pm \ 52 $$PWD/../../Source/WebCore/bindings/scripts/IDLParser.pm \ 53 $$PWD/../../Source/WebCore/bindings/scripts/IDLStructure.pm \ 54 $$PWD/../../Source/WebCore/bindings/scripts/InFilesParser.pm \ 55 $$PWD/../../Source/WebCore/bindings/scripts/generate-bindings.pl 56addExtraCompiler(idl) 57 58