News:

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

Main Menu

Workspace Defines across projects?

Started by BrianSidebotham, April 23, 2009, 02:40:02 PM

Previous topic - Next topic

BrianSidebotham

Hi Guys,

I have a workspace which has about 10 projects in it, most of which are static libraries. Because these libraries are used in several different applications they require different configurations. At the moment I set the configuration with define values. For example, a couple of defines I use for one of the libraries:

AMB_CFG_USE_BIOMETRICS=1 (or 0)
AMB_CFG_USE_GFX_LCD=1 (or 0)

Is there a way that I can set compiler defines which will be present over the entire workspace? Otherwise every time I try to compile an application I have to setup the libraries defines in it's project before compiling the whole application.

If it is not possible, then I will have to create a target for each configuration I use, which will create a lot of different libraries!

Any other suggestions of how to achieve this are also welcome! :)

Best Regards,

Brian.

dmoore

Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]