News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

windres options

Started by perosoft, February 23, 2011, 06:46:28 AM

Previous topic - Next topic

perosoft

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 !

MortenMacFly

Quote from: perosoft on February 23, 2011, 06:46:28 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

perosoft

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 ?

MortenMacFly

Quote from: perosoft on February 23, 2011, 02:48:34 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

MortenMacFly

...no-one there anymore?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Revan

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