Code::Blocks

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: stahta01 on September 27, 2019, 02:33:11 am

Title: RFC: Build Script to set CB_RELEASE_TYPE
Post by: stahta01 on September 27, 2019, 02:33:11 am
Does it make sense to use a project build script to set the Global Variable CB_RELEASE_TYPE?

If yes, I am think of using the name "ConfigGlobalVariable" in the script to config manager binding.

I would use a modified version of the code that supports ConfigManager binding.
http://wiki.codeblocks.org/index.php/Scripting_commands#ConfigManager (http://wiki.codeblocks.org/index.php/Scripting_commands#ConfigManager)

Tim S.
Title: Re: RFC: Build Script to set CB_RELEASE_TYPE
Post by: BlueHazzard on September 27, 2019, 08:22:41 am
Hi, can you elaborate how you want to set it automatically to what value? Set some automatic value if not present?
What is the reason for this? (i generally think it is a good idea to have default values)
Here is a similar discussion about setting global variables automatically (for reference)
http://forums.codeblocks.org/index.php/topic,21696.0.html
Title: Re: RFC: Build Script to set CB_RELEASE_TYPE
Post by: stahta01 on September 27, 2019, 10:30:04 pm
Hi, can you elaborate how you want to set it automatically to what value? Set some automatic value if not present?
What is the reason for this? (i generally think it is a good idea to have default values)
Here is a similar discussion about setting global variables automatically (for reference)
http://forums.codeblocks.org/index.php/topic,21696.0.html

The script looks to see if it already exists; if not, the script has a hard coded value it sets it to.

Tim S.