Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: perosoft on February 23, 2011, 06:46:28 am

Title: windres options
Post by: perosoft on February 23, 2011, 06:46:28 am
hi,

new to codeblocks,
how can i send options to windres ?
 i'm building different targets with the same rc file, and need to send defines to windres.
i have searched in forum but seems to be no answer on that problem.

thanks !
Title: Re: windres options
Post by: MortenMacFly on February 23, 2011, 10:56:14 am
i have searched in forum but seems to be no answer on that problem.
Go into the compiler settings on the last page, look for "advanced" settings. There you can fine-tune every option passed to windres.
Title: Re: windres options
Post by: perosoft on February 23, 2011, 02:48:34 pm
thanks for answer.
but this is a global action and i'm building a project with multiple targets.
how can i send diferent options to windres for each target ?
Title: Re: windres options
Post by: MortenMacFly on February 23, 2011, 06:22:15 pm
how can i send diferent options to windres for each target ?
What exact options do you need? For #defines you simply use the define - tab from the compiler options.
Title: Re: windres options
Post by: MortenMacFly on March 01, 2011, 06:27:35 pm
...no-one there anymore?
Title: Re: windres options
Post by: Revan on April 05, 2011, 12:24:59 am
windres missing -D

from windres manual:
-D target
--define sym[=val]
Specify a -D option to pass to the preprocessor when reading an rc file.

for example when I define DEBUG in compiler options I get
windres.exe -i D:\home\marek\WORKSP~1\CODEBL~1\WX7F47~1\resource.rc -J rc -o obj\Debug\resource.res -O coff -ID:\codeblocks\wxWidgets-2.8.12\include -ID:\codeblocks\wxWidgets-2.8.12\lib\gcc_dll\mswud

so missing -DDEBUG

latest svn 7075