• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Is There a Build Setting Relative to a Workspace?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Can't build to an iOS device after upgrading drives.
  • Next by Date: Re: XCode build gets stuck if simultaneously indexing
  • Previous by thread: [Q] making IBOutlet property as weak : is it changed in Xcode 4.5.1?
  • Next by thread: XML formatting like .xcscheme files?
  • Index(es):
    • Date
    • Thread