1 exists(hb_install.prf):include(hb_install.prf) |
1 exists(hb_install.prf):include(hb_install.prf) |
2 else:include($${HB_BUILD_DIR}/hb_install.prf) |
2 else:include($${HB_BUILD_DIR}/hb_install.prf) |
3 include(hb_functions.prf) |
3 include(hb_functions.prf) |
4 |
4 |
5 QMAKE_DOCML2BIN = $$hbToolCommand(docml2bin) |
5 QMAKE_DOCML2BIN = $$hbToolCommand(docml2bin) |
6 |
6 |
7 docml2bin.input = DOCML |
7 docml2bin.input = DOCML |
8 docml2bin.output = ${QMAKE_FILE_IN}.bin |
8 docml2bin.output = ${QMAKE_FILE_IN}.bin |
9 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}" |
10 docml2bin.name = DOCML2BIN ${QMAKE_FILE_IN} |
10 docml2bin.name = DOCML2BIN ${QMAKE_FILE_IN} |
11 docml2bin.CONFIG = no_link |
11 docml2bin.CONFIG = no_link |
12 |
12 |
13 for(DOCMLFILE, $$list($$unique(DOCML))) { |
13 for(DOCMLFILE, $$list($$unique(DOCML))) { |
14 DOCMLFILE_PWD = $${_PRO_FILE_PWD_}/$${DOCMLFILE} |
14 DOCMLFILE_PWD = $${_PRO_FILE_PWD_}/$${DOCMLFILE} |
|
15 symbian:PRE_TARGETDEPS += $${DOCMLFILE_PWD}.bin |
15 rcc.depends += $${DOCMLFILE_PWD}.bin |
16 rcc.depends += $${DOCMLFILE_PWD}.bin |
16 |
|
17 DOCML2BINEXTENSION = \ |
|
18 "START EXTENSION qt/qmake_extra_pre_targetdep.export" \ |
|
19 "OPTION PREDEP_TARGET $${DOCMLFILE_PWD}.bin" \ |
|
20 "OPTION DEPS $${DOCMLFILE_PWD}" \ |
|
21 "OPTION COMMAND $${QMAKE_DOCML2BIN} -s $${DOCMLFILE_PWD} -t $${DOCMLFILE_PWD}.bin" \ |
|
22 "END" |
|
23 symbian_test { |
|
24 BLD_INF_RULES.prj_testextensions += $$DOCML2BINEXTENSION |
|
25 } else { |
|
26 BLD_INF_RULES.prj_extensions += $$DOCML2BINEXTENSION |
|
27 } |
|
28 } |
17 } |
29 |
18 |
30 QMAKE_EXTRA_COMPILERS += docml2bin |
19 QMAKE_EXTRA_COMPILERS += docml2bin |