Author Topic: C::B Variable for Toolchain dir  (Read 3497 times)

Offline mattn2

  • Multiple posting newcomer
  • *
  • Posts: 18
C::B Variable for Toolchain dir
« on: March 22, 2008, 06:02:09 pm »
Hi,

i'm searching for a way to execute msgfmt.exe or any other binary from the toolchains dir. it would be nice if our users could compile the po files from within codeblocks. Is there a way to use the defined toolchain dir to execute msgfmt.exe (without modifing $PATH and so on) - some post-script like $(TOOLCHAIN_DIR)/bin/msgfmt.exe pofile.po

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: C::B Variable for Toolchain dir
« Reply #1 on: March 24, 2008, 08:20:46 pm »
some post-script like $(TOOLCHAIN_DIR)/bin/msgfmt.exe pofile.po
Did you try the pre/post build steps within the project / target options? You can place command in there or just call a script / batch file.
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 mattn2

  • Multiple posting newcomer
  • *
  • Posts: 18
Re: C::B Variable for Toolchain dir
« Reply #2 on: March 30, 2008, 05:47:54 pm »
yes, that's what i plan to do - but i have to call a batch file that wants the msgfmt.exe path as parameter. That's why i would like to call something like

batch.bat $(TOOLCHAIN_DIR)/bin/msgfmt.exe

but i still haven't found any working variable for this