DerivedSources.pri 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # -------------------------------------------------------------------
  2. # Derived sources for ANGLE
  3. #
  4. # See 'Tools/qmake/README' for an overview of the build system
  5. # -------------------------------------------------------------------
  6. # This file is both a top level target, and included from Target.pri,
  7. # so that the resulting generated sources can be added to SOURCES.
  8. # We only set the template if we're a top level target, so that we
  9. # don't override what Target.pri has already set.
  10. sanitizedFile = $$toSanitizedPath($$_FILE_)
  11. equals(sanitizedFile, $$toSanitizedPath($$_PRO_FILE_)):TEMPLATE = derived
  12. ANGLE_FLEX_SOURCES = \
  13. $$PWD/src/compiler/glslang.l \
  14. $$PWD/src/compiler/preprocessor/Tokenizer.l
  15. angleflex.output = ${QMAKE_FILE_BASE}_lex.cpp
  16. angleflex.input = ANGLE_FLEX_SOURCES
  17. angleflex.commands = $$FLEX --noline --nounistd --outfile=${QMAKE_FILE_OUT} ${QMAKE_FILE_IN}
  18. GENERATORS += angleflex
  19. ANGLE_BISON_SOURCES = \
  20. $$PWD/src/compiler/glslang.y \
  21. $$PWD/src/compiler/preprocessor/ExpressionParser.y
  22. anglebison_decl.output = ${QMAKE_FILE_BASE}_tab.h
  23. anglebison_decl.input = ANGLE_BISON_SOURCES
  24. anglebison_decl.commands = bison --no-lines --skeleton=yacc.c --defines=${QMAKE_FILE_OUT} --output=${QMAKE_FUNC_FILE_OUT_PATH}$${QMAKE_DIR_SEP}${QMAKE_FILE_OUT_BASE}.cpp ${QMAKE_FILE_IN}
  25. anglebison_decl.variable_out = GENERATED_FILES
  26. GENERATORS += anglebison_decl
  27. anglebison_impl.input = ANGLE_BISON_SOURCES
  28. anglebison_impl.commands = $$MAKEFILE_NOOP_COMMAND
  29. anglebison_impl.depends = $$GENERATED_SOURCES_DESTDIR/${QMAKE_FILE_BASE}_tab.h
  30. anglebison_impl.output = ${QMAKE_FILE_BASE}_tab.cpp
  31. GENERATORS += anglebison_impl