Is There a Build Setting Relative to a Workspace?
Is There a Build Setting Relative to a Workspace?
- Subject: Is There a Build Setting Relative to a Workspace?
- From: Andreas Grosam <email@hidden>
- Date: Thu, 11 Oct 2012 10:22:36 +0200
If there would be a Build Setting relative to a Workspace - similar like the SRCROOT which equals the path to the Xcode project - it would make setting up project paths in a more complex project comprising a number of Xcode projects more easier.
Currently, I have to use SRCROOT in order to deduce the header search path for a project. However, this source path is not always located below SRCROOT and may even change, when someone changes the folder structure - and thus, the path breaks.
For example, within an Xcode config file or a custom build setting:
// Source Root Path for project "Foo"
FOO_ROOT = "$(SRCROOT)/../../Source"
Where FOO_ROOT path points to, or whether it is correct at all is not immediately clear to the reader.
I would expect, that the location of a Workspace file can be considered a more stable "base path", e.g.:
// Source Root Path for project "Foo"
FOO_ROOT = "$(WS_ROOT)/Foo/Source"
Now, it is quite obvious what FOO_ROOT resolves to and whether it is correct, and can be easily adjusted if required.
Is there something like this?
If not would it be a good idea?
Andreas
_______________________________________________
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