Skip to content

Building the library

Derek Nylen edited this page Jun 10, 2017 · 5 revisions

The Duck Library is primarily developed in XCode and includes framework targets for MacOS and iOS. Building for either platform should be straightforward.

There are some preliminary configurations for Linux and non-Darwin BSD. It shouldn't take much to get either working.

CMakeLists.txt has a basic build configuration for Android. Be aware that it uses file globbing so adding or removing files isn't always caught by the build process. Also, Android Studio doesn't define DEBUG for debug builds, so you may want to add that to your gradle build to get assertions and whatnot.

SConstruct has a sample setup for building a static library with SCons. It's more of a proof-of-concept than a fully fleshed out build script, but it should serve as a good starting point. It takes a few parameters to configure the compiler, target architecture and build type.

DKConfig.h has a bunch of preprocessor setup for build options and platform configuration.

Clone this wiki locally