Changeset 381


Ignore:
Timestamp:
Dec 5, 2009, 12:23:42 AM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

emxexpw.cmd: Added -desc and -vendor options to make it possible to customize the respective fields of the DESCRIPTION statement.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mkspecs/os2-g++/emxexpw.cmd

    r102 r381  
    3535G.!eol          = '0D0A'x
    3636
    37 G.!DefaultTemplate.1 =,
    38     'LIBRARY ' /* <-- ${name} goes here */
    39 G.!DefaultTemplate.2 =,
    40     ' INITINSTANCE TERMINSTANCE' G.!eol||,
    41     'DATA MULTIPLE NONSHARED' G.!eol||,
    42     'EXPORTS'
     37G.!DefaultTemplate =,
     38    "LIBRARY ${name} INITINSTANCE TERMINSTANCE"G.!eol||,
     39    "DESCRIPTION '@#${vendor}:${version}#@ ${desc}'"G.!eol||,
     40    "DATA MULTIPLE NONSHARED"G.!eol||,
     41    "EXPORTS"
    4342    /* <-- ${exports} go here */
    4443
     
    5958Opt.!LibName         = ''
    6059Opt.!LibVersion      = ''
     60
     61
    6162Opt.!DefTemplate     = ''
    6263Opt.!DefMap          = ''
     
    157158        /* write stuff before ${exports} */
    158159        if (Opt.!DefTemplate = '') then do
    159             call lineout Opt.!DefFile,,
    160                 G.!DefaultTemplate.1||Opt.!LibName||G.!DefaultTemplate.2
     160            call lineout Opt.!DefFile, ReplaceMacros(G.!DefaultTemplate)
    161161            have_exports_macro = 1
    162162        end
     
    252252        /* write stuff before ${exports} */
    253253        if (Opt.!DefTemplate == '') then do
    254             call lineout Opt.!DefFile,,
    255                 G.!DefaultTemplate.1||Opt.!LibName||G.!DefaultTemplate.2
     254            call lineout Opt.!DefFile, ReplaceMacros(G.!DefaultTemplate)
    256255            have_exports_macro = 1
    257256        end
     
    278277
    279278    return
     279
     280
     281
     282
     283
     284
     285
     286
     287
     288
     289
     290
     291
     292
    280293
    281294/**
     
    312325            epos = pos('${exports}', str)
    313326            if (epos == 0) then do
    314                 str = Replace(str, '${name}', Opt.!LibName)
    315                 str = Replace(str, '${version}', Opt.!LibVersion)
     327                str = ReplaceMacros(str)
    316328                call lineout Opt.!DefFile, str
    317329            end