26 lines
622 B
Makefile
26 lines
622 B
Makefile
|
LOCAL_PATH:= $(call my-dir)
|
||
|
|
||
|
include $(CLEAR_VARS)
|
||
|
|
||
|
LOCAL_CPP_EXTENSION := .cpp .cc
|
||
|
|
||
|
#traverse all the directory and subdirectory
|
||
|
define walk
|
||
|
$(wildcard $(1)) $(foreach e, $(wildcard $(1)/*), $(call walk, $(e)))
|
||
|
endef
|
||
|
|
||
|
#find all the file recursively under jni/
|
||
|
ALLFILES = $(call walk, $(LOCAL_PATH))
|
||
|
FILE_LIST := $(filter %.cpp %.cc %.c, $(ALLFILES))
|
||
|
|
||
|
LOCAL_SRC_FILES := $(FILE_LIST:$(LOCAL_PATH)/%=%)
|
||
|
|
||
|
LOCAL_MODULE := libnative-utilities-dll
|
||
|
|
||
|
LOCAL_CPPFLAGS += -fexceptions -std=c++14
|
||
|
|
||
|
ifeq ($(TARGET_ARCH_ABI),x86)
|
||
|
LOCAL_CFLAGS += -ffast-math -mtune=atom -mssse3 -mfpmath=sse
|
||
|
endif
|
||
|
|
||
|
include $(BUILD_SHARED_LIBRARY)
|