mkspecs/docml2bin.prf
author hgs
Fri, 06 Aug 2010 14:05:40 +0300
changeset 17 071a219c708b
parent 7 923ff622b8b9
child 21 4633027730f5
child 34 ed14f46c0e55
permissions -rw-r--r--
201031

exists(hb_install.prf):include(hb_install.prf)
else:include($${HB_BUILD_DIR}/hb_install.prf)
include(hb_functions.prf)

QMAKE_DOCML2BIN = $$hbToolCommand(docml2bin) 
 
docml2bin.input = DOCML
docml2bin.output = ${QMAKE_FILE_IN}.bin
docml2bin.commands = "$$QMAKE_DOCML2BIN" -s "${QMAKE_FILE_IN}" -t "${QMAKE_FILE_OUT}"
docml2bin.name = DOCML2BIN ${QMAKE_FILE_IN}
docml2bin.CONFIG = no_link

for(DOCMLFILE, $$list($$unique(DOCML))) {
    DOCMLFILE_PWD = $${_PRO_FILE_PWD_}/$${DOCMLFILE}
    rcc.depends += $${DOCMLFILE_PWD}.bin

    DOCML2BINEXTENSION = \
        "START EXTENSION qt/qmake_extra_pre_targetdep.export" \
        "OPTION PREDEP_TARGET $${DOCMLFILE_PWD}.bin" \
        "OPTION DEPS $${DOCMLFILE_PWD}" \
        "OPTION COMMAND $${QMAKE_DOCML2BIN} -s $${DOCMLFILE_PWD} -t $${DOCMLFILE_PWD}.bin" \
        "END"    
    BLD_INF_RULES.prj_extensions += DOCML2BINEXTENSION
}

QMAKE_EXTRA_COMPILERS += docml2bin