Re: Source Trees
Re: Source Trees
- Subject: Re: Source Trees
- From: Chris Espinosa <email@hidden>
- Date: Mon, 24 May 2004 11:55:45 -0700
On May 24, 2004, at 10:39 AM, GoochRules! wrote:
What's the purpose of the 'Source Trees' Xcode Preference pane? Why
would I want one? What would I want to put in there?
In the Help->Xcode Help I've found some reference to CodeWarrior
Source Trees and how they relate to Xcode Source Trees, but nothing
for a developer who is completely new to OS X development.
Well, for a start, you could look in Xcode Help and search under
"Source Trees". On the "How Files are Referenced" page, it says in
part:
--
If a file is outside your project's folder, use one of these reference
styles:
Relative to source path. The path is relative to a user-defined
source path. You can define a source path in the Source Trees pane of
the Xcode Preferences.
---
That's a little terse, but here's a typical use. You and several other
coworkers are collaborating on a project. It requires an external set
of sources (like boost or something) that is not installed in a
standard location, but may vary from machine to machine. It's a pain
to fixup the references each time you check out the project file, or to
force everybody on the team to have external libraries in the same
place on each machine.
So you let people put the sources (e.g. boost) anywhere they want, and
have them define a Source Tree named, say, "boost", in their
per-machine preferences.
Then when the project refers to Boost files, it does so Relative to
Source Tree "boost". You can use the popup in the inspector, or the
symbol $(boost) in any build setting.
That way your project files are portable across machines that may have
prerequisite sources installed in different places.
Chris
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.
References: | |
| >Source Trees (From: GoochRules! <email@hidden>) |