5 type.register RC : rc ;
11 rule resource-compile ( target : sources * : properties * )
13 # local OS = [ feature.get-values <os> : $(properties) ] ;
14 resource-compile-mingw $(target) : $(sources[1]) ;
18 # resource-compile-nt $(target) : $(sources[1]) ;
20 # resource-compile-cygwin $(target) : $(sources[1]) ;
22 # create-empty-object $(target) : $(sources[1]) ;
24 # errors.error "Cannot process RC files for OS=$(OS)" ;
29 actions quietly resource-compile-nt
31 rc /i "$(>:D)" /fo "$(<)" "$(>)"
34 actions quietly resource-compile-mingw
36 windres -D__WINDRES__ -o "$(<)" -i "$(>)"
39 actions quietly resource-compile-cygwin
41 windres -D__WINDRES__ --include-dir "$(>:D)" -o "$(<)" -i "$(>)"
44 actions quietly create-empty-object
46 as /dev/null -o "$(<)"
49 # Since it's a common practice to write
50 # exe hello : hello.cpp hello.rc
51 # we change the name of object created from RC file, to
52 # avoid conflict with hello.cpp.
53 generators.register-standard rc-mingw.resource-compile : RC : OBJ(%_res) ;