[Biococoa-dev] conditional framework

Scott Christley schristley at mac.com
Tue Oct 6 22:23:54 EDT 2009

Hello all,

I'm working on some code that uses OpenCL (actually CUDA but I can  
rewrite) that I would like to add to BioCocoa.  However, OpenCL is  
only available in Snow Leopard (OSX 10.6), so does anybody know if  
there is a way to conditionally include a framework?  So I still want  
BioCocoa to work on earlier OSX versions, essentially by just not  
having those OpenCL classes available.  Any idea how to do this using  

I guess we would have to release two binaries, one for before 10.6 and  
one for 10.6+, that isn't much of a big deal but it would be nice to  
do it from a single Xcode project.  So set the target platform to  
10.4, compile, all of the 10.6 stuff is excluded.  Then set the target  
platform to 10.6, compile, etc.

Can framework versioning be used for this?  One version for 10.4 and  
another for 10.6, both are provided in a single framework bundle but  
OSX picks the correct binary to use for linking?

Any ideas?


More information about the Biococoa-dev mailing list