Author Topic: RFC: Build Script to set CB_RELEASE_TYPE  (Read 388 times)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6675
    • My Best Post
RFC: Build Script to set CB_RELEASE_TYPE
« 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

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 2566
Re: RFC: Build Script to set CB_RELEASE_TYPE
« Reply #1 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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6675
    • My Best Post
Re: RFC: Build Script to set CB_RELEASE_TYPE
« Reply #2 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.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org