Skip to content

Android build configuration for NDK with Boost and Fost libraries.

Notifications You must be signed in to change notification settings

hotkit/fost-mobile

Repository files navigation

fost-android-ndk

Android build configuration for NDK with Boost and Fost libraries.

Use the latest NDK and it uses C++14 and the Clang compiler.

To use

Add this repository as a git submodule in your Android project:

git submodule add [email protected]:KayEss/fost-android.git jni/fost-android

Boost version

The version of Boost is 1.65.1. To change it do something like this:

git submodule foreach "git checkout boost-1.66.0 || echo Not boost"

There is a convenience script in boost/ for this. As the libraries are maintained you may find that new dependancies are introduced.

Application.mk

A sample application configuration:

APP_ABI := arm64-v8a armeabi-v7a x86 # crypto++ won't build for mips
APP_PLATFORM := android-9

NDK_TOOLCHAIN_VERSION=clang
APP_STL := c++_static
APP_CPPFLAGS += -fexceptions -frtti

CMake

  • Crypto++ will not build for MIPS or early (non-NEON) ARM chips. arm64-v8a, armeabi-v7a, x86 and x86_64 are known to work.

About

Android build configuration for NDK with Boost and Fost libraries.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •