[Scons-users] Resource files in MSVSProject (*.rc)
Sergio Basurco
sergio.b at coherentsynchro.com
Wed Jan 25 10:37:12 EST 2017
Thanks Pierre,
That worked!
I have a follow-up issue. My project has come definitions (CPPDEFINES),
e.g. USE_FOO. My resource file also uses these definitions.
// Icon Resource Definition
#define MAIN_ICON 102
#ifdef USE_FOO
MAIN_ICON ICON "foo.ico"
#else
MAIN_ICON ICON "bar.ico"
#endif
These are defined in envs[variant]['CPPDEFINES'], how can I forward
these to the RES method?
Saludos / Best regards,
*Sergio Basurco*
Coherent Synchro
On 25/01/2017 15:51, Pierre-Luc Boily wrote:
> It should be something like that :
>
> tgtRes = env.RES('file.rc')
> prgTgt = env.Program('my.exe', ['main.cpp'] + tgtRes)
>
> env.MSVSProject(buildTarget = prgTgt)
>
> Then, when compiling within visual studio, this will automatically compile
> rc file, because it is a dependency of prgTgt
>
> Pierre-Luc
>
>
>
> --
> View this message in context: http://scons.1086193.n5.nabble.com/Resource-files-in-MSVSProject-rc-tp40971p40972.html
> Sent from the Users mailing list archive at Nabble.com.
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
More information about the Scons-users
mailing list