Boost logo

Boost-Build :

From: Alexey Pakhunov (alexeypa_at_[hidden])
Date: 2005-10-03 13:53:14


Hi All,

This patch allows to include generated files to .rc files. An example of
generated file is .tlb generated by midl.exe.

Best regards/Venlig hilsen,
Alexey Pakhunov.
 --------------030201060408030300080904 Content-Type: text/plain;
name="rc_fix.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="rc_fix.diff"

? rc_fix.diff
Index: msvc.jam
===================================================================
RCS file: /cvsroot/boost/boost/tools/build/v2/tools/msvc.jam,v
retrieving revision 1.56
diff -u -r1.56 msvc.jam
--- msvc.jam 26 Sep 2005 06:02:41 -0000 1.56
+++ msvc.jam 3 Oct 2005 18:48:16 -0000
@@ -340,7 +340,9 @@
generators.register-archiver msvc.archive : OBJ : STATIC_LIB : <toolset>msvc ;
generators.register-c-compiler msvc.compile.c++ : CPP : OBJ : <toolset>msvc ;
generators.register-c-compiler msvc.compile.c : C : OBJ : <toolset>msvc ;
-generators.register-standard msvc.compile.rc : RC : OBJ(%_res) : <toolset>msvc ;
+
+# Using 'register-c-compiler' adds the build directory to INCLUDES
+generators.register-c-compiler msvc.compile.rc : RC : OBJ(%_res) : <toolset>msvc ;
generators.override msvc.compile.rc : rc.resource-compile ;
generators.register-standard msvc.compile.asm : ASM : OBJ : <toolset>msvc ;

Index: rc.jam
===================================================================
RCS file: /cvsroot/boost/boost/tools/build/v2/tools/rc.jam,v
retrieving revision 1.6
diff -u -r1.6 rc.jam
--- rc.jam 29 Jun 2004 06:47:00 -0000 1.6
+++ rc.jam 3 Oct 2005 18:47:13 -0000
@@ -58,7 +58,9 @@
# The reason we generate OBJ and not RES, is that gcc does not
# seem to like RES files, but works OK with OBJ.
# See http://article.gmane.org/gmane.comp.lib.boost.build/5643/
-generators.register-standard rc.resource-compile : RC : OBJ(%_res) ;
+#
+# Using 'register-c-compiler' adds the build directory to INCLUDES
+generators.register-c-compiler rc.resource-compile : RC : OBJ(%_res) ;

# Register scanner for resources
class res-scanner : scanner
 --------------030201060408030300080904--


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk