Different library per build configuration?
Different library per build configuration?
- Subject: Different library per build configuration?
- From: Rippit the Ogg Frog <email@hidden>
- Date: Mon, 21 Sep 2009 19:56:37 -0700
Is the following even possible:
I'm building the ZooLib framework as a static library. There is a
libzoo.a for the Debug build configuration, and another libzoo.a for the
release build configuration. They're placed in the usual build products
folders by Xcode:
build/
Debug/
libzoo.a
Release/
libzoo.a
Next I build an application - in this particular case it's a test
harness. It has just one source file, and it links in libzoo.a.
If I include the Debug libzoo.a, and I build my test harness in debug
mode, it works fine.
Now what I would like to do is to include the Release libzoo.a in my
test harness, and link against that - but only when in Release mode.
What happens when I try is that one of the Instruction Set Architectures
is missing from libzoo.a, because it links against the Debug library
which was built with only one ISA.
I know that one solution would be to have two separate targets and build
one only in Debug and the other only in Release. But it seems to me
that there should be a better way.
(ZooLib is at http://www.zoolib.org/ - it's an Open Source
cross-platform framework.)
Thanks for your help,
--
Rippit the Ogg Frog
email@hidden
http://www.oggfrog.com/
_______________________________________________
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