CoreFoundation Lite on Linux and Android
- by celil
I would like to use Apple's CoreFoundation library on linux and android. The source code is available here, but there is very little documentation on how to build it on Linux. As far as I could figure out, building is done through a script called BuildCFLite. I grepped for DEPLOYMENT_TARGET
./CFUtilities.c:#if DEPLOYMENT_TARGET_MACOSX || DEPLOYMENT_TARGET_EMBEDDED || DEPLOYMENT_TARGET_LINUX || DEPLOYMENT_TARGET_FREEBSD
and Linux seems to be supported at first site by setting -DDEPLOYMENT_TARGET_LINUX, but some of the compiler flags in that script are not available on linux, so when I try to build I get an error.
Does anybody have experience building the latest version of CoreFoundation for Linux? Also what are the dependencies for building CoreFoundation? Would it be feasible to use it in the Android NDK?