nxpandroid | f319fe0 | 2015-11-17 18:20:13 +0530 | [diff] [blame] | 1 | # function to find all *.cpp files under a directory |
| 2 | define all-cpp-files-under |
| 3 | $(patsubst ./%,%, \ |
| 4 | $(shell cd $(LOCAL_PATH) ; \ |
| 5 | find $(1) -name "*.cpp" -and -not -name ".*") \ |
| 6 | ) |
| 7 | endef |
| 8 | |
| 9 | |
| 10 | LOCAL_PATH:= $(call my-dir) |
| 11 | D_CFLAGS += -DNXP_LDR_SVC_VER_2=TRUE |
| 12 | ###################################### |
| 13 | # Build shared library system/lib/libp61-jcop-kit.so for stack code. |
| 14 | |
| 15 | include $(CLEAR_VARS) |
| 16 | LOCAL_PRELINK_MODULE := false |
| 17 | LOCAL_ARM_MODE := arm |
| 18 | LOCAL_MODULE := libp61-jcop-kit |
| 19 | LOCAL_MODULE_TAGS := optional |
| 20 | LOCAL_SHARED_LIBRARIES := libhardware_legacy libcutils liblog libdl libhardware |
| 21 | LOCAL_CFLAGS := $(D_CFLAGS) |
| 22 | LOCAL_C_INCLUDES := \ |
| 23 | $(LOCAL_PATH)/include/ \ |
| 24 | $(LOCAL_PATH)/inc/ |
| 25 | LOCAL_SRC_FILES := \ |
| 26 | $(call all-c-files-under, src) \ |
| 27 | $(call all-cpp-files-under, src) |
| 28 | |
| 29 | include $(BUILD_SHARED_LIBRARY) |
| 30 | |
| 31 | |
| 32 | ###################################### |
| 33 | include $(call all-makefiles-under,$(LOCAL_PATH)) |