Re: .xcconfig
Re: .xcconfig
- Subject: Re: .xcconfig
- From: Benoit Thomas <email@hidden>
- Date: Fri, 04 Jun 2010 16:12:07 -0400
Thanks for the answer, I'll give a try with the symlink solution.
Ben.
On 2010-06-04 15:47, Rush Manbert wrote:
Hi,
On Jun 4, 2010, at 10:45 AM, Benoit Thomas wrote:
Hello,
I'm developing an internal library which is used by the various projects here. I'm using .xcconfig to setup debug and release configuration. The main reason I'm using .xcconfig files is because of the #include command, which allow the user to override build settings without modifing the library (they do not have access, so this is the only way).
I use something like:
SET_DEFAULT_CONFIGURATIONS = MANY_VALUES
#include ".../../some_config_dir/user_config.xcconfig"
2 Questions:
- 1 -
Instead of having a relative path, I would prefer an absolute path (base on the location on the project file), something like this:
#include "$(SRCROOT)/../../some_config_dir/user_config.xcconfig"
but naturally, this doesn't work :(
$(SRCROOT) as the first element of a relative path is implicit, so you don't really need it.
We define a standard symlink called SUBSYS_TOP in the SRCROOT directory of all of our projects. It points to the top of the subsystem tree uaig a relative path (i.e. ../../..), then we define our paths off of that, like this:
#include "SUBSYS_TOP/internal/xcconfig/target/targetAll.xcconfig"
I don't know if that would be useful for you, but it solved a lot of problems for us. We have a python script that knows how to make the symlink.
- 2 -
The user config file is optional. When my config files tries to include the user config file I get a warning if the files are missing. Is there any way to disable _only_ those warnings (since many projects are on Warning as Errors policy) ? Currently, the user need to create empty config files to get rid of those warnings
I don't think I can help you with this. You might be stuck with empty config files.
- Rush
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >.xcconfig (From: Benoit Thomas <email@hidden>) |
| >Re: .xcconfig (From: Rush Manbert <email@hidden>) |