This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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, $(ALLFILES)) | |
LOCAL_SRC_FILES := $(FILE_LIST:$(LOCAL_PATH)/%=%) |