-
Notifications
You must be signed in to change notification settings - Fork 78
Expand file tree
/
Copy pathAndroid.mk
More file actions
31 lines (21 loc) · 782 Bytes
/
Android.mk
File metadata and controls
31 lines (21 loc) · 782 Bytes
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
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := example
#APP_ABI := $(if $(APP_ABI),$(APP_ABI),armeabi)
#APP_ABI := armeabi x86 mips
APP_ABI += x86
APP_OPTIM := release
# Add shared library dependencies here (libmyDependency.so):
# LOCAL_LDFLAGS += -lmyDependency
LOCAL_LDLIBS := -llog
LOCAL_LDFLAGS += -Wl,--export-dynamic -Wl,--allow-multiple-definition
LOCAL_CFLAGS += -U_FORTIFY_SOURCE
LOCAL_ARM_MODE := $(if $(LOCAL_ARM_MODE),$(LOCAL_ARM_MODE),arm)
# Add include paths here:
# LOCAL_C_INCLUDES += ...
$(MYLIB_INCLUDES_PATH)
SRC_FILES += $(wildcard $(LOCAL_PATH)/*.c)
SRC_FILES += $(wildcard $(LOCAL_PATH)/*.cpp)
SRC_FILES += $(wildcard $(LOCAL_PATH)/*.cxx)
LOCAL_SRC_FILES += $(SRC_FILES:$(LOCAL_PATH)/%=%)
include $(BUILD_SHARED_LIBRARY)