Page 1 of 1

Configuration-dependant objects

Posted: Wed Sep 03, 2008 12:49 pm
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 ?

Re: Configuration-dependant objects

Posted: Wed Sep 03, 2008 1:04 pm
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

Re: Configuration-dependant objects

Posted: Wed Sep 03, 2008 2:26 pm
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 :)