Re: Copy Headers that preserves subdirectory structure?
Re: Copy Headers that preserves subdirectory structure?
- Subject: Re: Copy Headers that preserves subdirectory structure?
- From: Michael Rawdon <email@hidden>
- Date: Thu, 11 Oct 2007 12:11:08 -0700
Hi Steve -
On Oct 11, 2007, at 11:58 AM, Steve Byan wrote: Is there a way to have the Copy Headers build phase preserve the subdirectory structure for the header files?
I've got a BSD static library project that provides some FreeBSD and Linux emulation for cross-compiling unit-tests on OS X. As part of the emulation, I need to install headers like sys/callout.h and cam/cam.h in my Public Headers Folder Path. Unfortunately, the Xcode Copy Headers build phase seems to flatten the directory structure and install all the headers at the top level of Public Headers Folder. Is there some setting that can instruct Copy Headers to preserve a relative path for a header file?
The alternative seems to be to copy the headers in a Run Script build phase. Does Xcode export PUBLIC_HEADERS_FOLDER_PATH as an environment variable?
Try adding the folder containing the header to Xcode as a folder reference, and then add that to the Copy Headers build phase (you'll probably have to drag-drop it into the phase rather than checking the checkbox in the detail view). Folder references are the mechanism Xcode provides for preserving a directory hierarchy during a copy. See the Xcode documentation for more information.
-- Michael Rawdon email@hidden Xcode Developer Apple Inc., Cupertino CA
|
_______________________________________________
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