News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Custom/environment variables

Started by mandrav, July 14, 2005, 01:57:12 PM

Previous topic - Next topic

mandrav

Custom/environment variables can now be defined per-compiler, per-project and per-target.
The changes are in CVS.

After you build C::B once, change custom variables WX_DIR and WX_CFG in project build options to point to your wxWidgets dir.

Yiannis.
Be patient!
This bug will be fixed soon...

David Perfors

I can see now that it is possible to use variables, so I set the global compiler variables and project specific variables. (WX_DIR and WX_CFG for example)
Which variable will have the highest priority?
OS: winXP
Compiler: mingw
IDE: Code::Blocks SVN WX: 2.8.4 Wish list: faster code completion, easier debugging, refactoring

mandrav

QuoteWhich variable will have the highest priority?
They 're applied in this order: Global -> Project -> Target
so if you set the same variable in global vars and in target vars, target's will be the one last set.

Yiannis.
Be patient!
This bug will be fixed soon...

darklordsatan

This is just awesome mandrav, will you ever stop?  :D
Now if it works correctly, I think this is a helluva feature

Cheers

tiwag

THANKS Yiannis !

really a great feature !!!

THANKS THANKS THANKS

rickg22

Yiannis, when you say "in CVS", you mean in BOTH branches, right? (crosses fingers  :? )

Also, I suppose these variables are stored in a SEPARATE file, so the .cbp remains unchanged (otherwise, we'd see about 1,000 CVS commits of codeblocks.cbp :lol: )

mandrav

Quote from: rickg22Yiannis, when you say "in CVS", you mean in BOTH branches, right? (crosses fingers  :? )
Cross them all you want ;)
Yes, both branches.
Quote from: rickg22Also, I suppose these variables are stored in a SEPARATE file, so the .cbp remains unchanged (otherwise, we'd see about 1,000 CVS commits of codeblocks.cbp :lol: )
The global (per-compiler) vars are stored in the global C::B configuration (registry for win32).
The per-project and per-target are kept in the project file of course.

Yiannis.
Be patient!
This bug will be fixed soon...

rickg22

Okay! :) I was just trying to figure out how this would make possible the building of both branches of codeblocks with the same global setup.

David Perfors

Quote from: mandrav
QuoteWhich variable will have the highest priority?
They 're applied in this order: Global -> Project -> Target
so if you set the same variable in global vars and in target vars, target's will be the one last set.
It is strange that the Global variables are not overridden by the Project variables :roll:
I tried to compile codeblocks with the cvs projectfile (including WX_DIR var with a path that doesn't excist on my system) It couldn't compile, because the wx/ headers couldn't be found.
I added WX_DIR and WX_CFG to the Global variables and it worked...
OS: winXP
Compiler: mingw
IDE: Code::Blocks SVN WX: 2.8.4 Wish list: faster code completion, easier debugging, refactoring