Changeset 954


Ignore:
Timestamp:
Aug 10, 2011, 5:22:54 PM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

qmake: Added support for .SYM file generation on OS/2.

This is done through the 'sym' CONFIG option which is on
by default if mapsym is found during configure.

Location:
trunk
Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/README.OS2

    r950 r954  
    5757the corresponding feature:
    5858
    59   - LxLite 1.3.3 or above (not tested) to enable the compression of Qt DLLs and
    60     application executables (which saves hard disk space and application startup
    61     time). If you use a recent version of eComStation (e.g. 2.0 rc6) you will
    62     already have LxLite installed. Otherwise, you may take it from here:
     59  - MAPSYM 4.00.000 (Oct 4 2001) to enable generation of symbol (.SYM) files for
     60    DLLs and executables. This tool comes with OS/2 Toolkit 4.5. Note that other
     61    versions of this tool may not work correctly.
     62
     63  - LxLite 1.3.3 or above (not tested) to enable the compression of DLLs and
     64    executables (which saves hard disk space and application startup time). If
     65    you use a recent version of eComStation (e.g. 2.0 rc6) you will already have
     66    LxLite installed. Otherwise, you may take it from here:
    6367
    6468      http://www.os2site.com/sw/util/archiver/lxlt133.zip
     
    378382                    DLLs. This option is set by default.
    379383
     384  sym               Turns on generation of the .sym files for executables and
     385                    DLLs. The option is turned on by default if configure.cmd
     386                    is able to find the MAPSYM tool in PATH.
     387
    380388  exepack           Turns on compression for executables and DLLs. The option is
    381389                    turned on by default for release builds if configure.cmd
    382                     finds a compression tool (LxLite) in PATH.
     390                    is able to find a compression tool (LxLite) in PATH.
    383391
    384392  highmem           Turns on high memory usage for dynamically allocated memory
  • trunk/configure.cmd

    r899 r954  
    356356
    357357    /* variables that override ones in qmake.conf */
     358    G.QMAKE_MAPSYM = ""
    358359    G.QMAKE_EXEPACK = ""
    359360    G.QMAKE_EXEPACK_FLAGS = ""
     
    633634*/
    634635    end
     636
     637    /* detect the mapsym program */
     638    if (G.QMAKE_MAPSYM == "") then
     639        G.QMAKE_MAPSYM = SysSearchPath('PATH', 'mapsym.cmd')
     640    if (G.QMAKE_MAPSYM == "") then
     641        G.QMAKE_MAPSYM = SysSearchPath('PATH', 'mapsym.exe')
     642    if (G.QMAKE_MAPSYM \== "") then
     643        G.QMAKE_MAPSYM = "mapsym" /* try to be smart and rely on PATH */
    635644
    636645    /* detect the exepack program */
     
    18281837'# qmake.conf overrides'G.EOL
    18291838
     1839    if (G.QMAKE_MAPSYM \== '') then do
     1840        call charout qconfig_pri_new,,
     1841'QMAKE_MAPSYM = 'G.QMAKE_MAPSYM||G.EOL
     1842    end
     1843
    18301844    if (G.QMAKE_EXEPACK \== '') then do
    18311845        call charout qconfig_pri_new,,
     
    20762090    if (G.CFG_PTMALLOC \== "no") then
    20772091        call SayLog "Use ptmalloc ........... "G.CFG_PTMALLOC
     2092
     2093    if (G.QMAKE_MAPSYM \== "") then
     2094        call SayLog "Symbol file support .... yes ("G.QMAKE_MAPSYM")"
     2095    else
     2096        call SayLog "Symbol file support .... no"
    20782097
    20792098    if (G.QMAKE_EXEPACK \== "") then
  • trunk/mkspecs/features/os2/map.prf

    r415 r954  
    22    build_pass|isEmpty(BUILDS) {
    33        QMAKE_LFLAGS += $$QMAKE_LFLAGS_MAP
    4         QMAKE_CLEAN += $(basename $(DESTDIR_TARGET)).map
     4        QMAKE_CLEAN += $$QMAKE_MAP_FILE
    55    }
    66}
  • trunk/mkspecs/os2-g++/qmake.conf

    r895 r954  
    166166QMAKE_STRIP     =
    167167
     168QMAKE_MAP_FILE  = $(basename $(DESTDIR_TARGET)).map
     169QMAKE_SYM_FILE  = $(basename $(DESTDIR_TARGET)).sym
     170ilink:QMAKE_RUN_MAPSYM  = $(QMAKESPECDIR)\\runmapsym.cmd \
     171    mapsym $$QMAKE_MAP_FILE $$QMAKE_SYM_FILE
     172wlink:QMAKE_RUN_MAPSYM  = $(QMAKESPECDIR)\\runmapsym.cmd \
     173    $(QMAKESPECDIR)\\wmapsym.cmd $$QMAKE_MAP_FILE $$QMAKE_SYM_FILE
     174
    168175load(qt_config)
Note: See TracChangeset for help on using the changeset viewer.