• 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
building a mach-o bundle object file without bundle packaging
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

building a mach-o bundle object file without bundle packaging


  • Subject: building a mach-o bundle object file without bundle packaging
  • From: William Turner <email@hidden>
  • Date: Fri, 21 Apr 2006 10:15:00 -0400

Hi,

I'm trying to convert a Makefile to a project target. The Makefile produces a bundle of the type that can be directly loaded using dlopen. Here's the build line:

all:
$(CXX) $(CXXFLAGS) -bundle -o test_bundle.bundle -bundle_loader ../my_bundle_loader_app my_source_code.cc $(LFLAGS)

The only kind of target I've been able to make work at all in Xcode has been a "Carbon-Loadable Bundle". The problem is that this builds a .bundle package with the bundle object file buried in Contents/MacOS. I can trip that away using a script, but that seems a little silly...

How can I get Xcode to build a loadable bundle object file without packaging it in a .bundle package? There seems to be an acknowledgment that there are 2 "kinds" of bundles, according to this document, http://developer.apple.com/documentation/DeveloperTools/Conceptual/MachOTopics/index.html#//apple_ref/doc/uid/TP40001519:
"The term “bundle” has two related meanings in Mac OS X:
  • The actual object file containing the executable code
  • A directory containing the object file and associated resources.
"

But I can't find any information on how to build the first kind (other than using make).

Thanks,
Wil
 _______________________________________________
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: building a mach-o bundle object file without bundle packaging
      • From: "William H. Schultz" <email@hidden>
  • Prev by Date: Re: Help folder
  • Next by Date: Re: Crash on G3
  • Previous by thread: Re: Bug? Colouring should be aware of \ at end of line
  • Next by thread: Re: building a mach-o bundle object file without bundle packaging
  • Index(es):
    • Date
    • Thread