Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LOCAL_PATH := $(call my-dir)
- include $(CLEAR_VARS)
- LOCAL_MODULE := opt
- #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_C := $(filter %.c, $(ALLFILES))
- FILE_LIST_CPP := $(filter %.cpp, $(ALLFILES))
- LOCAL_SRC_FILES := $(FILE_LIST_C:$(LOCAL_PATH)/%=%) \
- $(FILE_LIST_CPP:$(LOCAL_PATH)/%=%)
- LOCAL_C_INCLUDES := $(LOCAL_PATH)/src/mesa \
- $(LOCAL_PATH)/src \
- $(LOCAL_PATH)/src/include \
- $(LOCAL_PATH)/src/glsl \
- LOCAL_CPP_INCLUDES := $(LOCAL_PATH)/src/mesa \
- $(LOCAL_PATH)/src \
- $(LOCAL_PATH)/src/include \
- include $(BUILD_SHARED_LIBRARY)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement