User forums > Help

C::B Variable for Toolchain dir

(1/1)

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

--- End quote ---
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.

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

Navigation

[0] Message Index

Go to full version