• 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: Matthew Tobiasz <email@hidden>
  • Date: Mon, 19 Nov 2007 14:53:58 -0700

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.

Thanks Philip, that worked. I added a "New Run Script Build Phase" to my Framework target and recreated the directory structure via the script.


The one caveat is that since all the header files are first moved into a single folder, eg. PUBLIC_HEADERS_FOLDER_PATH, unique file names for all copied header files is required. Then again (correct me if I'm wrong), it seems that Xcode doesn't handle non-unique header/source files very well, even when the conflicting files reside in different directories.

Again, thanks Philip.





_______________________________________________
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


  • Follow-Ups:
    • Re: Creating a Carbon Framework with header files in multiple directories.
      • From: Philip Aker <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: Command line "Hello World" not showing
  • Next by Date: Re: Creating a Carbon Framework with header files in multiple directories.
  • Previous by thread: Re: Creating a Carbon Framework with header files in multiple directories.
  • Next by thread: Re: Creating a Carbon Framework with header files in multiple directories.
  • Index(es):
    • Date
    • Thread