Code::Blocks Forums

User forums => Help => Topic started by: mattn2 on March 22, 2008, 06:02:09 pm

Title: C::B Variable for Toolchain dir
Post by: mattn2 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
Title: Re: C::B Variable for Toolchain dir
Post by: MortenMacFly 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.
Title: Re: C::B Variable for Toolchain dir
Post by: mattn2 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