Author Topic: Workspace variables  (Read 2870 times)

Offline fubo

  • Multiple posting newcomer
  • *
  • Posts: 38
Workspace variables
« on: October 20, 2010, 07:22:22 pm »
Hi,
I would want to define some variables at workspace level that can be used at project level for example for name building. For example, I would want a project to be renamed depending on the workspace in which it is included. I tried variables sets, but they are defined at configuration level and not selectable at workspace level but at project level.

Could someone help me?

Regards.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Workspace variables
« Reply #1 on: October 20, 2010, 08:25:12 pm »
I am working with the idea that Code::Blocks does NOT do what you want.
You might have some replies saying it works somehow to do what you want; but, I have no idea how to do what you wanted to do(Unless Global Variables solves the problem).

You did try Global Variables, right?
http://wiki.codeblocks.org/index.php?title=Global_compiler_variables

If so, then you need to patch the code to do what you want.

See Wiki on How to Compile Code::Blocks from source
http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Windows

Tim S.
« Last Edit: October 20, 2010, 08:30:18 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline fubo

  • Multiple posting newcomer
  • *
  • Posts: 38
Re: Workspace variables
« Reply #2 on: October 20, 2010, 08:31:50 pm »
I know, I saw there is no way to do that... :(

BTW is there a reference for XML codes available for .workspace and .cbp files?