From schristley at mac.com Tue Oct 6 22:23:54 2009 From: schristley at mac.com (Scott Christley) Date: Tue, 06 Oct 2009 19:23:54 -0700 Subject: [Biococoa-dev] conditional framework Message-ID: 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 Xcode? 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? cheers Scott From ttenzin at gmail.com Tue Oct 6 22:43:14 2009 From: ttenzin at gmail.com (Temujin Ayamikhan) Date: Wed, 7 Oct 2009 03:43:14 +0100 Subject: [Biococoa-dev] conditional framework In-Reply-To: References: Message-ID: Borrow the GLKit framework from GNU3DKit that is or was in GNUStep CVS/SVN ? It should work in OSX, as far as I recall there were a couple of includes that had to be changd, from AppKit.h to Cocoa.h, and one other I cannot remember. Temujin -- Rendered unconscious in 3D dreams