• 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
Re: Creating a Carbon Framework with header files in multiple directories.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating a Carbon Framework with header files in multiple directories.


  • Subject: Re: Creating a Carbon Framework with header files in multiple directories.
  • From: "E. Wing" <email@hidden>
  • Date: Mon, 19 Nov 2007 18:05:24 -0800

Sorry, I didn't see this thread until now. Here's one possible
alternative to running a shell script phase. I don't claim it is
better, just an alternative way of doing it.

You can create a new Copy Files phase for each different subdirectory.
Use "Wrapper" for Destination:, and set the path like:
Headers/timers/generic

The Headers part is the must since this will hang off the normal
Headers directory in the framework.

I think (but can't remember for sure), you don't want to put these
headers in the Copy Headers Phase, or you at least don't want to mark
them as Public. (Leave as Project.)

You will need to make a different Copy Files Phase for each different
directory which is the annoying  part. You shouldn't need to have a
copy phase for intermediate directories with no files (e.g. timers).


Doing this type of path hierarchy with a framework makes me a little
antsy because I've seen some strange bugs regarding header search
paths probably due to Apple's gcc changes to support frameworks and
SDKs, but I'm sure you have no choice. And for me in my 'no choice'
projects, it seems to work (for now).

-Eric


On 11/17/07, Philip Aker <email@hidden> wrote:
> On 2007-11-14, at 09:33, Matthew Tobiasz wrote:
>
> > Having a look at some of the frameworks in /System/Library/
> > Frameworks there is no example I could find of a framework with
> > header files in a subdirectory below the root "Headers" directory.
> > The one example I could find of this, is the Boost framework  build
> > script [ http://archives.free.net.ph/message/
> > 20071026.232403.0dbc4633.en.html ] suggested by Joel Beaudoin,
> > however this creates the framework with a build script not in Xcode.
>
> > Would I have to add a "Run Script Build Phase" to move this header
> > files into the framework?
>
> Probably. The path to the public headers folder is:
>
> 	"${TARGET_BUILD_DIR}/${PUBLIC_HEADERS_FOLDER_PATH}"
>
> There is a corresponding private headers folder path as well.
>
> You can see the environment variables Xcode provides by using:
>
> 	env | sort > "${HOME}/Desktop/${TARGET_NAME}_env.txt"
>
> in a Run Script build phase.
>
>
> Philip Aker
> echo email@hidden@nl | tr a-z@. p-za-o.@
>
>
>
>  _______________________________________________
> 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
>
 _______________________________________________
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: 
 >Creating a Carbon Framework with header files in multiple directories. (From: Matthew Tobiasz <email@hidden>)
 >Re: Creating a Carbon Framework with header files in multiple directories. (From: Matthew Tobiasz <email@hidden>)
 >Re: Creating a Carbon Framework with header files in multiple directories. (From: Philip Aker <email@hidden>)

  • Prev by Date: Re: Difference between NIB and XIB
  • Next by Date: Re: Editing HTML
  • Previous by thread: Re: Creating a Carbon Framework with header files in multiple directories.
  • Next by thread: Odd error messages when using WebView
  • Index(es):
    • Date
    • Thread