mkspecs/docml2bin.prf
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 17 Sep 2010 08:32:10 +0300
changeset 28 b7da29130b0e
parent 23 e6ad4ef83b23
child 30 80e4d18b72f5
permissions -rw-r--r--
Revision: 201035 Kit: 201037

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"
    symbian_test {
        BLD_INF_RULES.prj_testextensions += $$DOCML2BINEXTENSION
    } else {
        BLD_INF_RULES.prj_extensions += $$DOCML2BINEXTENSION
    }
}

QMAKE_EXTRA_COMPILERS += docml2bin