Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Including different libs based on build style



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.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.