Can a single library binary be used as a static or shared?
I ask this specifically regarding Unix-like systems (Linux, Mac OSX, etc).
On the next level of granularity, I'm referring to the library binary that
is included in a Mac Framework. For example, I'm trying to write a Qt
Library that wraps libspotify. The libspotify distribution I have is the
OSX Framework.
I'm curious as to whether or not I can simply remove the library and
header that I need and essentially just include it in the project. I want
to do this for portability purposes, e.g. a different build of libspotify
can be dropped in and the whole thing can be recompiled into a static
library or the Qt library can be used as a shared library that depends on
the shared libspotify. Either way, I'd just rather avoid having the Qt
.pro file depend on the OSX Framework directory semantics.
I'm aware that I can use conditional compilation in the .pro file, but
that's also something I'd rather avoid if possible. Thanks to all in
advance.
No comments:
Post a Comment