• 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
Including different libs based on build style
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Including different libs based on build style


  • Subject: Including different libs based on build style
  • From: "Mike Pinkerton" <email@hidden>
  • Date: Wed, 25 Aug 2004 15:25:37 -0400 (EDT)
  • Organization: AOL

I'm wondering if I'm just overlooking how to do something, I can't
figure out how with XCode.

I have a project that uses prebuilt libraries from an external source.
The libraries are in separate directories for debug and release, eg:

project/
   sdebug/
     foo.a
     bar.a
   srelease/
     foo.a
     bar.a

Since the names of the libs are the same, i figure i should just be able
to change an include path in the build style but that doesn't seem to
work. I have to add the file to my project, and that carries with it an
implicit location. Even if i make it relative to the enclosing group,
the libraries don't have the same parent folder.

The only way I've been able to do this is with two separate targets and
to add both versions of the files to the project. The targets are
exactly the same except for which version of foo.a and bar.a they
reference. This seems like serious overkill and complicates maintenance
(now have to do things to multiple targets when making changes).

Am I missing something obvious? I also do not want to change the folder
hierarchy of the external libraries (for easier setup).

Thanks!

--
Mike Pinkerton
Mac Weenie
email@hidden           http://people.netscape.com/pinkerton/
_______________________________________________
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.


  • Follow-Ups:
    • Re: Including different libs based on build style
      • From: Mark Lilback <email@hidden>
    • Re: Including different libs based on build style
      • From: Bryan Pietrzak <email@hidden>
  • Prev by Date: Re: time.h vs Time.h
  • Next by Date: Re: No Way to change Tab View Item in Interface Builder
  • Previous by thread: switch tab views in a tab-less view
  • Next by thread: Re: Including different libs based on build style
  • Index(es):
    • Date
    • Thread