1 include(hb_install.prf) |
1 exists(hb_install.prf):include(hb_install.prf) |
|
2 else:include($${HB_BUILD_DIR}/hb_install.prf) |
2 include(hb_functions.prf) |
3 include(hb_functions.prf) |
3 |
4 |
4 QMAKE_DOCML2BIN = $$hbNativePath($${HB_BIN_DIR}/docml2bin) |
5 QMAKE_DOCML2BIN = $$hbToolCommand(docml2bin) |
5 |
6 |
6 docml2bin.input = DOCML |
7 docml2bin.input = DOCML |
7 docml2bin.output = ${QMAKE_FILE_IN}.bin |
8 docml2bin.output = ${QMAKE_FILE_IN}.bin |
8 docml2bin.commands = "$$QMAKE_DOCML2BIN" -s "${QMAKE_FILE_IN}" -t "${QMAKE_FILE_OUT}" |
9 docml2bin.commands = "$$QMAKE_DOCML2BIN" -s "${QMAKE_FILE_IN}" -t "${QMAKE_FILE_OUT}" |
9 docml2bin.name = DOCML2BIN ${QMAKE_FILE_IN} |
10 docml2bin.name = DOCML2BIN ${QMAKE_FILE_IN} |
10 docml2bin.CONFIG = no_link |
11 docml2bin.CONFIG = no_link |
11 |
12 |
12 rcc.depends += compiler_docml2bin_make_all |
13 for(DOCMLFILE, $$list($$unique(DOCML))) { |
|
14 DOCMLFILE_PWD = $${_PRO_FILE_PWD_}/$${DOCMLFILE} |
|
15 rcc.depends += $${DOCMLFILE_PWD}.bin |
13 |
16 |
14 ## how to add ".bin" for each variable? |
17 DOCML2BINEXTENSION = \ |
15 #rcc.depends += for(DOCMLFILE, $$list(DOCML)) { DOCMLFILE } |
18 "START EXTENSION qt/qmake_extra_pre_targetdep.export" \ |
16 #rcc.depends += $${first(DOCML)}.bin |
19 "OPTION PREDEP_TARGET $${DOCMLFILE_PWD}.bin" \ |
17 #rcc.depends += $${last(DOCML)}.bin |
20 "OPTION DEPS $${DOCMLFILE_PWD}" \ |
|
21 "OPTION COMMAND $${QMAKE_DOCML2BIN} -s $${DOCMLFILE_PWD} -t $${DOCMLFILE_PWD}.bin" \ |
|
22 "END" |
|
23 BLD_INF_RULES.prj_extensions += DOCML2BINEXTENSION |
|
24 } |
18 |
25 |
19 QMAKE_EXTRA_COMPILERS += docml2bin |
26 QMAKE_EXTRA_COMPILERS += docml2bin |