You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
1.4 KiB
25 lines
1.4 KiB
isEmpty(QMAKE_QSETTINGSTRANSLATOR): qtPrepareTool(QMAKE_QSETTINGSTRANSLATOR, qsettingstranslator.py)
|
|
isEmpty(QSETTINGSTRANSLATOR_DIR): QSETTINGSTRANSLATOR_DIR = $$_PRO_FILE_PWD_/.ts-dummy
|
|
|
|
!ReleaseBuild:!DebugBuild: {
|
|
qsettingstranslator_c.name = QSETTINGSTRANSLATOR of ${QMAKE_FILE_IN}
|
|
qsettingstranslator_c.input = QTMVVM_TS_SETTINGS
|
|
qsettingstranslator_c.variable_out = CPP_DUMMIES
|
|
qsettingstranslator_c.commands = $$QMAKE_QSETTINGSTRANSLATOR ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT}
|
|
qsettingstranslator_c.output = $$QSETTINGSTRANSLATOR_DIR/${QMAKE_FILE_BASE}.tsdummy$${first(QMAKE_EXT_CPP)}
|
|
qsettingstranslator_c.CONFIG += no_link
|
|
qsettingstranslator_c.depends += $$QMAKE_QSETTINGSTRANSLATOR
|
|
|
|
QMAKE_EXTRA_COMPILERS += qsettingstranslator_c
|
|
|
|
qtmvvm_tsgen_target.target = qtmvvm-tsgen
|
|
qtmvvm_tsgen_target.depends += compiler_qsettingstranslator_c_make_all
|
|
qtmvvm_tsgen_target.commands += @echo $$shell_quote(>>> Remember to add the line \"_never_true_condition: SOURCES += $${LITERAL_DOLLAR}$${LITERAL_DOLLAR}$${LITERAL_DOLLAR}$${LITERAL_DOLLAR}files($${LITERAL_DOLLAR}$${LITERAL_DOLLAR}$${LITERAL_DOLLAR}$${LITERAL_DOLLAR}PWD/.ts-dummy/*)\" to your pro file)
|
|
QMAKE_EXTRA_TARGETS += qtmvvm_tsgen_target
|
|
} else {
|
|
qtmvvm_tsgen_target.target = qtmvvm-tsgen
|
|
QMAKE_EXTRA_TARGETS += qtmvvm_tsgen_target
|
|
}
|
|
|
|
QMAKE_DIR_REPLACE += QSETTINGSTRANSLATOR_DIR
|
|
QMAKE_DIR_REPLACE_SANE += QSETTINGSTRANSLATOR_DIR
|
|
|