From 8d1d9617fec21f01fdd212e2c3170fc136f3937e Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Mon, 3 Nov 2003 23:57:18 +0000 Subject: [PATCH] added jamfile for Boost Build system V2 svn path=/trunk/; revision=6526 --- reactos/subsys/system/explorer/rc-mingw.jam | 53 +++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 reactos/subsys/system/explorer/rc-mingw.jam diff --git a/reactos/subsys/system/explorer/rc-mingw.jam b/reactos/subsys/system/explorer/rc-mingw.jam new file mode 100644 index 00000000000..9f456560f6f --- /dev/null +++ b/reactos/subsys/system/explorer/rc-mingw.jam @@ -0,0 +1,53 @@ +import type ; +import generators ; +import feature ; + +type.register RC : rc ; + +rule init ( ) +{ +} + +rule resource-compile ( target : sources * : properties * ) +{ +# local OS = [ feature.get-values : $(properties) ] ; + resource-compile-mingw $(target) : $(sources[1]) ; +# switch $(OS) +# { +# case "NT" : +# resource-compile-nt $(target) : $(sources[1]) ; +# case "CYGWIN" : +# resource-compile-cygwin $(target) : $(sources[1]) ; +# case "FREEBSD" : +# create-empty-object $(target) : $(sources[1]) ; +# case "*" : +# errors.error "Cannot process RC files for OS=$(OS)" ; +# } +} + + +actions quietly resource-compile-nt +{ + rc /i "$(>:D)" /fo "$(<)" "$(>)" +} + +actions quietly resource-compile-mingw +{ + windres -o "$(<)" -i "$(>)" +} + +actions quietly resource-compile-cygwin +{ + windres --include-dir "$(>:D)" -o "$(<)" -i "$(>)" +} + +actions quietly create-empty-object +{ + as /dev/null -o "$(<)" +} + +# Since it's a common practice to write +# exe hello : hello.cpp hello.rc +# we change the name of object created from RC file, to +# avoid conflict with hello.cpp. +generators.register-standard rc-mingw.resource-compile : RC : OBJ(%_res) ;