<div>Yes, something like QMAKE_EXTRA_TARGETS. I am calling system(git describe --tags) and I get the output and pass it to makensis in a custom target:</div><div><br></div><div><div>SCM_VERSION = $$system(git describe --tags)</div>
</div><div><div>!isEmpty(QMAKE_SH) {</div><div>    # qmake in a unix shell requires escaping on the parenthesis</div><div>    VI_VERSION = $$system(python -c 'print\\(\\"$${SCM_VERSION}\\".split\\(\\"-\\"\\)[0]\\)')</div>
<div>} else {</div><div>    VI_VERSION = $$system(python -c 'print(\\"$${SCM_VERSION}\\".split(\\"-\\")[0])')</div></div><div>}</div><div><br></div><div>win32 {</div><div><div>    createinstaller.target = installer</div>
<div>    createinstaller.commands = $${QMAKE_COPY} \"$${TARGET_FILENAME}\" \"$${DESTDIR_WIN}\" &&</div><div>    createinstaller.commands += cd \"$$PWD/win32\" && makensis -DVIVERSION=$${VI_VERSION} -DVERSION=$${SCM_VERSION} installer.nsi</div>
<div>    createinstaller.depends = first</div><div>    QMAKE_EXTRA_TARGETS += createinstaller</div></div><div>}</div><div><br></div>How do we tell qbs to only make one of those?<br><br><div class="gmail_quote">On Wed, Feb 22, 2012 at 5:28 AM, Joerg Bornemann <span dir="ltr"><<a href="mailto:joerg.bornemann@nokia.com">joerg.bornemann@nokia.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 22/02/2012 06:54, ext Mathieu Bouchard wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
You could also probably cover more platforms by adding custom targets<br>
support. For example, I currently use some "undocumented" qmake<br>
functions to add custom targets to the build process. They are used to<br>
provide a "make installer" target on Windows that calls makensis to<br>
create an installer file. On OSX, this is used to call macqtdeploy.<br>
</blockquote>
<br></div>
If I understand you correctly, you want something like QMAKE_EXTRA_TARGETS or QMAKE_EXTRA_COMPILERS.<br>
<br>
There is support for adding custom artifacts and transformers.<br>
See tests/manual/transformers for an example.<br>
<br>
<br>
BR,<br>
<br>
Jörg<br>
</blockquote></div><br>