source: trunk/mkspecs/features/os2/exepack.prf@ 972

Last change on this file since 972 was 972, checked in by Dmitry A. Kuminov, 14 years ago

qmake: gnumake/os2: Make .sym generation part of main target rule.

Previously the .sym file was a separate rule depending on the target.
However, it actually needed not the target itself, but a map file generated
when generating the target. Since for EXE targets different builds
generate the EXE file under the same name but may not generate the
map file, the .sym generation could fail (e.g. if building the release after
the debug).

Note that under the new scheme there is a problem of the .sym file not
being generated at all in this case. But that's a different story since having
two distinct targets (release and debug) output to the same file is
confusing per se and there is no clean solution for that other than using
separate dirs for debug/release (which is always a good thing).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Revision Author Id
File size: 405 bytes
Line 
1isEmpty(QMAKE_EXEPACK):error("'exepack' is present in CONFIG but QMAKE_EXEPACK is not defined!")
2
3contains(TEMPLATE, ".*app")|dll {
4 build_pass|isEmpty(BUILDS) {
5 CONFIG(release, debug|release) {
6 !isEmpty(QMAKE_POST_LINK):QMAKE_POST_LINK += $$escape_expand(\\n\\t)
7 QMAKE_POST_LINK += $$QMAKE_EXEPACK $$QMAKE_EXEPACK_FLAGS $@ $$QMAKE_EXEPACK_POST_FLAGS
8 }
9 }
10}
Note: See TracBrowser for help on using the repository browser.