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

C::B Variable for Toolchain dir

Started by mattn2, March 22, 2008, 06:02:09 PM

Previous topic - Next topic

mattn2

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

MortenMacFly

Quote from: mattn2 on March 22, 2008, 06:02:09 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: [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]

mattn2

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