diff options
author | Steven Knight <knight@baldmt.com> | 2005-11-06 00:36:35 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2005-11-06 00:36:35 (GMT) |
commit | 84b4920ce6d6faac79ff97a588893f8f26920091 (patch) | |
tree | 67663a944a2f4d892e11bd160ffd2474781201f0 | |
parent | 4c56e48d6acf33240d467b9baf97726eb4e243f3 (diff) | |
download | SCons-84b4920ce6d6faac79ff97a588893f8f26920091.zip SCons-84b4920ce6d6faac79ff97a588893f8f26920091.tar.gz SCons-84b4920ce6d6faac79ff97a588893f8f26920091.tar.bz2 |
Add use of $CPPDEFINES to $RCCOM on MinGW. (Amir Szekely)
-rw-r--r-- | doc/man/scons.1 | 9 | ||||
-rw-r--r-- | src/CHANGES.txt | 2 | ||||
-rw-r--r-- | src/engine/SCons/Tool/mingw.py | 2 | ||||
-rw-r--r-- | src/engine/SCons/Tool/msvc.xml | 9 |
4 files changed, 15 insertions, 7 deletions
diff --git a/doc/man/scons.1 b/doc/man/scons.1 index ef6e8b8..47a74d4 100644 --- a/doc/man/scons.1 +++ b/doc/man/scons.1 @@ -7066,13 +7066,16 @@ The archive indexer. General options passed to the archive indexer. .IP RC -The resource compiler used by the RES builder. +The resource compiler used to build +a Microsoft Visual C++ resource file. .IP RCCOM -The command line used by the RES builder. +The command line used to build +a Microsoft Visual C++ resource file. .IP RCCOMSTR -The string displayed when invoking the resource compiler. +The string displayed when invoking the resource compiler +to build a Microsoft Visual C++ resource file. If this is not set, then $RCCOM (the command line) is displayed. .IP RCFLAGS diff --git a/src/CHANGES.txt b/src/CHANGES.txt index f65e061..de7bf8e 100644 --- a/src/CHANGES.txt +++ b/src/CHANGES.txt @@ -710,6 +710,8 @@ RELEASE 0.97 - XXX - Update EnsureSConsVersion() to support revision numbers. + - Add use of $CPPDEFINES to $RCCOM (resource file compilation) on MinGW. + From Dobes Vandermeer: - Add support for SCC and other settings in Microsoft Visual diff --git a/src/engine/SCons/Tool/mingw.py b/src/engine/SCons/Tool/mingw.py index 2e737e1..300198e 100644 --- a/src/engine/SCons/Tool/mingw.py +++ b/src/engine/SCons/Tool/mingw.py @@ -142,7 +142,7 @@ def generate(env): env['RCINCFLAGS'] = '$( ${_concat(RCINCPREFIX, CPPPATH, RCINCSUFFIX, __env__, RDirs, TARGET, SOURCE)} $)' env['RCINCPREFIX'] = '--include-dir ' env['RCINCSUFFIX'] = '' - env['RCCOM'] = '$RC $RCINCFLAGS $RCINCPREFIX ${SOURCE.dir} $RCFLAGS -i $SOURCE -o $TARGET' + env['RCCOM'] = '$RC $_CPPDEFFLAGS $RCINCFLAGS ${RCINCPREFIX}${SOURCE.dir} $RCFLAGS -i $SOURCE -o $TARGET' env['BUILDERS']['RES'] = res_builder # Some setting from the platform also have to be overridden: diff --git a/src/engine/SCons/Tool/msvc.xml b/src/engine/SCons/Tool/msvc.xml index 426014b..76529b1 100644 --- a/src/engine/SCons/Tool/msvc.xml +++ b/src/engine/SCons/Tool/msvc.xml @@ -88,19 +88,22 @@ env['PCHSTOP'] = 'StdAfx.h' <cvar name="RC"> <summary> -The resource compiler used by the RES builder. +The resource compiler used to build +a Microsoft Visual C++ resource file. </summary> </cvar> <cvar name="RCCOM"> <summary> -The command line used by the RES builder. +The command line used to build +a Microsoft Visual C++ resource file. </summary> </cvar> <cvar name="RCCOMSTR"> <summary> -The string displayed when invoking the resource compiler. +The string displayed when invoking the resource compiler +to build a Microsoft Visual C++ resource file. If this is not set, then &cv-RCCOM; (the command line) is displayed. </summary> </cvar> |