Author Topic: windres options  (Read 5477 times)

Offline perosoft

  • Single posting newcomer
  • *
  • Posts: 9
windres options
« 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 !

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: windres options
« Reply #1 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline perosoft

  • Single posting newcomer
  • *
  • Posts: 9
Re: windres options
« Reply #2 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 ?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: windres options
« Reply #3 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: windres options
« Reply #4 on: March 01, 2011, 06:27:35 pm »
...no-one there anymore?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Revan

  • Single posting newcomer
  • *
  • Posts: 3
Re: windres options
« Reply #5 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