News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

[RFC] Add the possibility to change global variables over arguments

Started by BlueHazzard, July 19, 2019, 01:12:35 AM

Previous topic - Next topic

BlueHazzard

Hi,
I still try to fully automate the whole build process of codeblocks for every version... This comes with some problems where i have to change the global variables for every project file. At the moment i do this by replacing the variables in the project file. This is slow and inconvenient...

I propose to add a command line parameter to change the global variable on the fly. Something like

--globalVar wx30="New/Path/For/Wx30"

or

--globalVarwx30="New/Path/For/Wx30"

or

-Dwx30="New/Path/For/Wx30"

or similar syntax...
This will overwrite the set configuration of the global variable...

any comments?

sodev

You can have multiple sets of global variables, this way you can assign different values to the same variable. However i dont know if you can select the set from the command line. I used sets for a while, but too often i forgot to switch to the required one so i ended up using tagged variables instead, like wx_vc140_x86.

stahta01

Did you try using different profiles for each set of global variable values?

Note: This is over kill; so,  a better way would be nice.

-p parameter

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

BlueHazzard

Thank you! I totally missed the codeblocks personality function. You reminded me to it.
Now i think i am able to build every codeblocks version with one single bat file... Nice. Finally an automated complete build...

I still think this would be an valuable addition to the parameter list....