mirror of
https://github.com/AxioDL/CodeGen.git
synced 2026-07-11 06:18:36 -07:00
11 lines
594 B
Plaintext
11 lines
594 B
Plaintext
# Define CODEGEN_DIR, CODEGEN_OUT_PATH and CODEGEN_SRC_PATH, then include this file in a qmake project
|
|
# The include must be at the bottom of the file (after SOURCES, HEADERS, and INCLUDEPATH are all fully initialized)
|
|
Codegen.name = Codegen
|
|
Codegen.input = SOURCES
|
|
Codegen.output = $$CODEGEN_OUT_PATH
|
|
Codegen.variable_out = SOURCES
|
|
Codegen.commands = python $$CODEGEN_DIR/codegen.py -pwd $$CODEGEN_SRC_PATH -cmdinput -include $$INCLUDEPATH -sourcefiles $$SOURCES $$HEADERS -o $$CODEGEN_OUT_PATH
|
|
Codegen.CONFIG += target_predeps combine
|
|
QMAKE_EXTRA_COMPILERS += Codegen
|
|
DEFINES += WITH_CODEGEN
|