From 3ce84237eb57e11090d3208069ca0e63732cd8da Mon Sep 17 00:00:00 2001 From: stevenknight Date: Sat, 7 May 2005 23:07:26 +0000 Subject: [PATCH] Add --include-dir and the source directory when calling the MinGW resource compiler. (Amir Szekely) git-svn-id: http://scons.tigris.org/svn/scons/trunk@1290 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- src/CHANGES.txt | 5 +++++ src/engine/SCons/Tool/mingw.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/CHANGES.txt b/src/CHANGES.txt index cc3538f7..3bd3f595 100644 --- a/src/CHANGES.txt +++ b/src/CHANGES.txt @@ -512,6 +512,11 @@ RELEASE 0.97 - XXX - Allow $JARCHDIR to be expanded to other construction variables. + From Amir Szekely: + + - When calling the resource compiler on MinGW, add --include-dir and + the source directory so it finds the source file. + From Greg Ward: - Fix a misplaced line in the man page. diff --git a/src/engine/SCons/Tool/mingw.py b/src/engine/SCons/Tool/mingw.py index 1fd1530c..c8b044be 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)} $)' env['RCINCPREFIX'] = '--include-dir ' env['RCINCSUFFIX'] = '' - env['RCCOM'] = '$RC $RCINCFLAGS $RCFLAGS -i $SOURCE -o $TARGET' + env['RCCOM'] = '$RC $RCINCFLAGS $RCINCPREFIX ${SOURCE.dir} $RCFLAGS -i $SOURCE -o $TARGET' env['BUILDERS']['RES'] = res_builder # Some setting from the platform also have to be overridden: -- 2.26.2