<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[qmake define sequence of QMAKE_POST_LINK actions]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">After link I need to sign my exe with a custom tool and I use the QMAKE_POST_LINK variable.</p>
<p dir="auto">The problem is that I am using also the QAxServer module and it causes the target exe to be modified after the signing part. As consequence the signature is not valid anymore.</p>
<p dir="auto">These lines are in project file:</p>
<pre><code>QT += axserver
QMAKE_POST_LINK += "toolToSignExe.exe \"$${DESTDIR}\" \"$${TARGET}.exe\""
</code></pre>
<p dir="auto">I tried to inverse the order of the lines but it changes nothing.</p>
<p dir="auto">In Qt4 axserver was a CONFIG and it was possible to choose which step was executed first by moving the lines in project file.</p>
<p dir="auto">Any suggestion how i could resolve this in qt5? There is a mean to set the order think happens or a QMAKE_POST_POST_LINK variable?</p>
<p dir="auto">Thank you!</p>
<p dir="auto">P.s. I dont want to add a build step in Qt Creator because it lands in .pro.user file and it is not versionable</p>
]]></description><link>https://forum.qt.io/topic/62422/qmake-define-sequence-of-qmake_post_link-actions</link><generator>RSS for Node</generator><lastBuildDate>Sat, 13 Jun 2026 21:07:37 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/62422.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 07 Jan 2016 13:33:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to qmake define sequence of QMAKE_POST_LINK actions on Thu, 14 Jan 2016 09:53:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> Yes I still need it, i think that QT += axserver does nothing else than calling idcidl.prf (from Qt installation).<br />
Using CONFIG += idcidl also call idcidl.prf but I can control when it is done, and the content of the makefile is then ordered like I need it.</p>
]]></description><link>https://forum.qt.io/post/307306</link><guid isPermaLink="true">https://forum.qt.io/post/307306</guid><dc:creator><![CDATA[Damiano]]></dc:creator><pubDate>Thu, 14 Jan 2016 09:53:22 GMT</pubDate></item><item><title><![CDATA[Reply to qmake define sequence of QMAKE_POST_LINK actions on Mon, 11 Jan 2016 21:52:32 GMT]]></title><description><![CDATA[<p dir="auto">So you didn't need axserver at all ?</p>
<p dir="auto">In any case, thanks for sharing the solution :)</p>
<p dir="auto">Since you have it working now, please mark the thread as solved using the "Topic Tool" button so that other forum users may know a solution has been found :)</p>
]]></description><link>https://forum.qt.io/post/306727</link><guid isPermaLink="true">https://forum.qt.io/post/306727</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Mon, 11 Jan 2016 21:52:32 GMT</pubDate></item><item><title><![CDATA[Reply to qmake define sequence of QMAKE_POST_LINK actions on Mon, 11 Jan 2016 11:48:55 GMT]]></title><description><![CDATA[<p dir="auto">So I have resolved by removing QT += axserver from project file and adding the line CONFIG += idcidl</p>
<p dir="auto">Now my project file looks so:</p>
<pre><code>QMAKE_POST_LINK += "toolToSignExe.exe \"${DESTDIR}\" \"${TARGET}.exe\""
CONFIG += idcidl
</code></pre>
]]></description><link>https://forum.qt.io/post/306657</link><guid isPermaLink="true">https://forum.qt.io/post/306657</guid><dc:creator><![CDATA[Damiano]]></dc:creator><pubDate>Mon, 11 Jan 2016 11:48:55 GMT</pubDate></item><item><title><![CDATA[Reply to qmake define sequence of QMAKE_POST_LINK actions on Mon, 11 Jan 2016 07:44:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sgaist">@<bdi>SGaist</bdi></a> thank you for your answer!</p>
<p dir="auto">No I'm tryng to do the opposit, link against axserver and only at the end sign the executable.</p>
<p dir="auto">To be more clear if I look at the generated makefile I find this lines:</p>
<pre><code>	cmd.exe /C ""U:\toolToSignExe.exe" "Output" "easyCodeII.exe"" 
	 -$(IDC) $(DESTDIR_TARGET) /idl $(OBJECTS_DIR)/easyCodeII.idl -version 1.0
	 -$(IDL) $(OBJECTS_DIR)/easyCodeII.idl /nologo /tlb $(OBJECTS_DIR)/easyCodeII.tlb
	 -$(IDC) $(DESTDIR_TARGET) /tlb $(OBJECTS_DIR)/easyCodeII.tlb
	 -$(IDC) $(DESTDIR_TARGET) /regserver
</code></pre>
<p dir="auto">But I want to have:</p>
<pre><code>	 -$(IDC) $(DESTDIR_TARGET) /idl $(OBJECTS_DIR)/easyCodeII.idl -version 1.0
	 -$(IDL) $(OBJECTS_DIR)/easyCodeII.idl /nologo /tlb $(OBJECTS_DIR)/easyCodeII.tlb
	 -$(IDC) $(DESTDIR_TARGET) /tlb $(OBJECTS_DIR)/easyCodeII.tlb
	 -$(IDC) $(DESTDIR_TARGET) /regserver
	cmd.exe /C ""U:\toolToSignExe.exe" "Output" "easyCodeII.exe"" 
</code></pre>
]]></description><link>https://forum.qt.io/post/306608</link><guid isPermaLink="true">https://forum.qt.io/post/306608</guid><dc:creator><![CDATA[Damiano]]></dc:creator><pubDate>Mon, 11 Jan 2016 07:44:52 GMT</pubDate></item><item><title><![CDATA[Reply to qmake define sequence of QMAKE_POST_LINK actions on Thu, 07 Jan 2016 23:27:18 GMT]]></title><description><![CDATA[<p dir="auto">Hi and welcome to devnet,</p>
<p dir="auto">Something's not clear: you want to first sign your executable and then link against the axserver library ?</p>
]]></description><link>https://forum.qt.io/post/306156</link><guid isPermaLink="true">https://forum.qt.io/post/306156</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Thu, 07 Jan 2016 23:27:18 GMT</pubDate></item></channel></rss>