最終更新:2016-10-25 (火) 13:46:54 (2739d)
Application.mk
Top / Application.mk
http://developer.android.com/ndk/guides/application_mk.html
概要
- This file enumerates and describes the modules that your app requires. This information includes:
- ABIs used to compile for specific platforms.
- Toolchains.
- Standard libraries to include (static and dynamic STLport or default system).
デフォルト
APP_ABI := all
追加オプション
APP_PLATFORM := android-9
ファイル
- (オプショナル)
<project>/jni/Application.mk
オプション
定義 説明 APP_MODULES? モジュール名を指定(必須) APP_PROJECT_PATH? プロジェクトパスを指定(必須) APP_OPTIM debugかreleaseを指定(releaseがデフォルト) APP_CFLAGS? Cソースコンパイルフラグを指定 APP_CXXFLAGS? C++ソースコンパイルフラグを指定 APP_CPPFLAGS CとC++で共通のコンパイルフラグを指定 APP_BUILD_SCRIPT Android.mkのパスを指定($( APP_PROJECT_PATH)/jni/Android.mkがデフォルト) APP_LDFLAGS? APP_ABI APP_PLATFORM This variable contains the name of the target Android platform. APP_STL APP_SHORT_COMMANDS? NDK_TOOLCHAIN_VERSION APP_PIE APP_THIN_ARCHIVE?
デフォルト値
OpenCV/Android
- Usually the file Application.mk is optional, but in case of project using OpenCV, when STL and exceptions are used in C++, it also should be created. Example of the file Application.mk:
APP_STL := gnustl_static APP_CPPFLAGS := -frtti -fexceptions APP_ABI := all