Code::Blocks Forums
User forums => Using Code::Blocks => Topic started 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 !
-
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.
-
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 ?
-
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.
-
...no-one there anymore?
-
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