shake-language-c-0.11.0: Utilities for cross-compiling with Shake

Safe HaskellNone
LanguageHaskell98

Development.Shake.Language.C.Target.Android

Description

This module provides toolchain definitions and utilities for targeting Android. See Development.Shake.Language.C.Rules for examples of how to use a target toolchain.

The minimum required Android NDK revision is 11c.

Synopsis

Documentation

target :: Arch -> Target Source #

Android target for architecture.

sdkVersion :: Int -> Version Source #

Construct a version record from an integral Android SDK version.

sdkVersion 19 == Version [19] []

toolChain Source #

Arguments

:: FilePath

NDK source directory

-> Version

SDK version, see sdkVersion

-> ToolChainVariant

Toolchain variant

-> Target

Build target, see target

-> ToolChain

Resulting toolchain

Construct an Android toolchain.

abiString :: Arch -> String Source #

Valid Android ABI identifier for the given architecture.

gnustl Source #

Arguments

:: Version

GNU STL version

-> Linkage

Static or Shared

-> FilePath

NDK source directory

-> Target

Build target, see target

-> BuildFlags -> BuildFlags

BuildFlags modification function

Build flags for building with and linking against the GNU gnustl standard C++ library.

libcxx Source #

Arguments

:: Linkage

Static or Shared

-> FilePath

NDK source directory

-> Target

Build target, see target

-> BuildFlags -> BuildFlags

BuildFlags modification function

Build flags for building with and linking against the LLVM libc++ standard C++ library.

native_app_glue Source #

Arguments

:: FilePath

NDK source directory

-> ([FilePath], BuildFlags -> BuildFlags) 

Source paths and build flags for the native_app_glue module.