Configuration-dependant objects

General questions regarding the usage of CodeLite
screetch
CodeLite Curious
Posts: 6
Joined: Wed Sep 03, 2008 11:44 am
Contact:

Configuration-dependant objects

Post by screetch »

I have hiles that are built only in certain configurations, because platform/architecture independant. I wonder if it is possible to add these objects to the list of files to be built only when the proper configuration is selected ?
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Configuration-dependant objects

Post by eranif »

screetch wrote:I have hiles that are built only in certain configurations, because platform/architecture independant. I wonder if it is possible to add these objects to the list of files to be built only when the proper configuration is selected ?
Currently no.

The best workaround:

Create another project and place all your platform related files there.
in the main project you can define the build order, 'project context menu -> Build Order...'
The trick is that the build order is set per-configuration.

So simply link the newly created project with the main project only for the required configurations

Eran
Make sure you have read the HOW TO POST thread
screetch
CodeLite Curious
Posts: 6
Joined: Wed Sep 03, 2008 11:44 am
Contact:

Re: Configuration-dependant objects

Post by screetch »

Thanks. I will have a look at it. It's definitely possible to do this for me since the projects are generated, so I'll test it :)
Post Reply