User forums > Help

Compiler Installation directory as C::B Variable

(1/2) > >>

christobal:
Hi,

Does anybody know, if there is a Code::Blocks variable (like e.g. $(PROJECT_NAME)) for the Compiler Installation Directory? I could of course create a custom variable for that, but the downside would be that my projects won't be compileable on other machines.

ollydbg:

--- Quote from: christobal on November 30, 2009, 11:11:33 am ---Hi,

Does anybody know, if there is a Code::Blocks variable (like e.g. $(PROJECT_NAME)) for the Compiler Installation Directory? I could of course create a custom variable for that, but the downside would be that my projects won't be compileable on other machines.



--- End quote ---

I just do a quick search about "PROJECT_NAME" in the codeblocks source code
 "sdk\macrosmanager.cpp" will do the whole job, but I can't find a Code::Blocks variable of compiler installation path, so, I think you can add one in that file.  :D

oBFusCATed:
christobal: Why do you need it?

christobal:

--- Quote ---christobal: Why do you need it?
--- End quote ---
I need to run some scripts in the post-build steps, which need the compiler path (basically extracting object files from one lib and putting them into another).


--- Quote ---"sdk\macrosmanager.cpp" will do the whole job, but I can't find a Code::Blocks variable of compiler installation path, so, I think you can add one in that file.
--- End quote ---
Adding that variable to the macrosmanager is an easy task, but since I will share my projects with others, it will fail for everyone who has the "official" Code::Blocks installed.

Maybe I should file a feature request...

oBFusCATed:
I've expected the answer to be weird, but that weird  :lol:  :shock:


--- Quote from: christobal on December 01, 2009, 11:05:38 am ---Adding that variable to the macrosmanager is an easy task, but since I will share my projects with others, it will fail for everyone who has the "official" Code::Blocks installed.

Maybe I should file a feature request...

--- End quote ---
Better route for you is to upload a patch to berlios.de

Navigation

[0] Message Index

[#] Next page

Go to full version