Advertisement
Guest User

Untitled

a guest
May 24th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. LOCAL_PATH := $(call my-dir)
  2.  
  3. include $(CLEAR_VARS)
  4.  
  5. LOCAL_MODULE := opt
  6.  
  7. #traverse all the directory and subdirectory
  8. define walk
  9. $(wildcard $(1)) $(foreach e, $(wildcard $(1)/*), $(call walk, $(e)))
  10. endef
  11.  
  12. #find all the file recursively under jni/
  13. ALLFILES = $(call walk, $(LOCAL_PATH))
  14. FILE_LIST_C := $(filter %.c, $(ALLFILES))
  15. FILE_LIST_CPP := $(filter %.cpp, $(ALLFILES))
  16.  
  17. LOCAL_SRC_FILES := $(FILE_LIST_C:$(LOCAL_PATH)/%=%) \
  18. $(FILE_LIST_CPP:$(LOCAL_PATH)/%=%)
  19.  
  20. LOCAL_C_INCLUDES := $(LOCAL_PATH)/src/mesa \
  21. $(LOCAL_PATH)/src \
  22. $(LOCAL_PATH)/src/include \
  23. $(LOCAL_PATH)/src/glsl \
  24.  
  25. LOCAL_CPP_INCLUDES := $(LOCAL_PATH)/src/mesa \
  26. $(LOCAL_PATH)/src \
  27. $(LOCAL_PATH)/src/include \
  28.  
  29. include $(BUILD_SHARED_LIBRARY)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement