-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMatrixLibrary.mk
More file actions
53 lines (41 loc) · 1.12 KB
/
MatrixLibrary.mk
File metadata and controls
53 lines (41 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#
# MatrixLibrary.mk
# For Android MatrixLibrary Library
#
# Only compile MatrixLibrary (Base modules)
#
# ONLY SUPPORT 32bits OS
#
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
APP_BUILD_SCRIPT := MatrixLibrary.mk
NDK_APP_DST_DIR := ./android-lib/$(TARGET_ARCH_ABI)
# Target filename
LOCAL_MODULE := MatrixLib
APP_ABI := armeabi-v7a x86
# NOT SUPPORT armeabi
# PARTICULAR SUPPORT x64
APP_PLATFORM := android-14 # >= 4.0
# APP_STL := c++_static # OLLVM
APP_CPPFLAGS += -frtti -fexceptions -fvisibility=hidden
# Required Modules
LOCAL_CFLAGS += -DANDROID_VER -DANDROID_MK_VER
LOCAL_CFLAGS += -D__ANDROID__
MY_HEADER_FILES_PATH := $(LOCAL_PATH)/include/
MY_SOURCE_FILES_PATH := $(LOCAL_PATH)/src
# Debug / Production
ifeq ($(DEBUG),1)
APP_CFLAGS += -O0 -g
APP_OPTIM := debug
else
APP_CFLAGS += -O3
APP_OPTIM := release
endif
# Include headers
LOCAL_C_INCLUDES := $(MY_HEADER_FILES_PATH)
# Include source files
LOCAL_SRC_FILES := $(wildcard $(MY_SOURCE_FILES_PATH)/m4ri/*.c)
LOCAL_SRC_FILES += $(wildcard $(MY_SOURCE_FILES_PATH)/matrixlib/*.c)
LOCAL_LDLIBS += -landroid
LOCAL_LDLIBS += -llog # When Debug
include $(BUILD_SHARED_LIBRARY)