Instantly share code, notes, and snippets.

What would you like to do?
NDK build include all the files under a directory
#traverse all the directory and subdirectory
define walk
$(wildcard $(1)) $(foreach e, $(wildcard $(1)/*), $(call walk, $(e)))
#find all the file recursively under jni/
ALLFILES = $(call walk, $(LOCAL_PATH))
FILE_LIST := $(filter %.cpp, $(ALLFILES))

This comment has been minimized.

MoVoDesign commented Aug 12, 2018

Awesome little piece of code... Saved me from having to concatenate 95 .cpp files!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment