source: trunk/mkspecs/features/os2/sym.prf@ 1026

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

mkspecs/os2: Use FAST_BUILD make macro to disable slow noncritical steps.

At present, setting FAST_BUILD will disable generation of the .sym file for the
EXE or DLL target as this involves a slow script that converts Watcom maps to
IBM maps and a very slow mapsym utility (they both may take tens of minutes
to finish if the original DLL has a lot of exports, like QtGui or QtWebKit).

  • Property svn:eol-style set to native
File size: 1.7 KB
Line 
1isEmpty(QMAKE_MAPSYM):error("'sym' is present in CONFIG but QMAKE_MAPSYM is not defined!")
2
3exe_or_dll {
4 build_pass|isEmpty(BUILDS) {
5 !isEmpty(QMAKE_POST_LINK):QMAKE_POST_LINK = $$QMAKE_POST_LINK$$escape_expand(\\n)
6 QMAKE_POST_LINK = $$QMAKE_POST_LINK$$QMAKE_IFNDEF FAST_BUILD$$escape_expand(\\n\\t)
7 QMAKE_POST_LINK = $$QMAKE_POST_LINK$$QMAKE_RUN_MAPSYM
8 QMAKE_CLEAN += $$QMAKE_SYM_FILE
9 !contains(CONFIG, map) {
10 QMAKE_LFLAGS += $$QMAKE_LFLAGS_MAP # from map.prf
11 QMAKE_POST_LINK = $$QMAKE_POST_LINK$$escape_expand(\\n\\t)$(DEL_FILE) $$QMAKE_MAP_FILE
12 }
13 # also copy .sym file to DLLDESTDIR (as Win32MakefileGenerator does for .dll)
14 !isEmpty(DLLDESTDIR) {
15 for(d, DLLDESTDIR) {
16 QMAKE_POST_LINK = $$QMAKE_POST_LINK$$escape_expand(\\n\\t)-$(COPY_FILE) $$QMAKE_SYM_FILE $$fixpath_target($$d)
17 }
18 }
19 QMAKE_POST_LINK = $$QMAKE_POST_LINK$$escape_expand(\\n)$$QMAKE_ENDIF
20
21 # also install .sym file to target.path
22 contains(INSTALLS, target):!contains(CONFIG, no_install_debuginfo) {
23 target_debuginfo.path = $$target.path
24 target_debuginfo.files = $$QMAKE_SYM_FILE
25 target_debuginfo.CONFIG += data no_check_exist no_vpath no_fixify
26 INSTALLS += target_debuginfo
27 }
28
29 # also install .sym file to dlltarget.path
30 contains(INSTALLS, dlltarget):!contains(CONFIG, no_install_debuginfo) {
31 dlltarget_debuginfo.path = $$dlltarget.path
32 dlltarget_debuginfo.files = $$QMAKE_SYM_FILE
33 dlltarget_debuginfo.CONFIG += data no_check_exist no_vpath no_fixify
34 INSTALLS += dlltarget_debuginfo
35 }
36 }
37}
Note: See TracBrowser for help on using the repository browser.