summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2015-10-01 00:59:06 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-10-01 00:59:06 +0000
commitb9a77b6693f539e2f84804e6e4b4cf3bd7272df4 (patch)
tree9bc33d105f3cc3e1fc2395f14218b3f4b3097550
parent37971912c6335af85caad8ca7950376f7d99bb14 (diff)
parent87425c1a55ec6bfae2cb434f5859188f96185bef (diff)
downloadlibnfc-nci-b9a77b6693f539e2f84804e6e4b4cf3bd7272df4.tar.gz
Merge "Use global all-cpp-files-under"
-rw-r--r--Android.mk14
-rw-r--r--halimpl/pn54x/Android.mk14
2 files changed, 1 insertions, 27 deletions
diff --git a/Android.mk b/Android.mk
index eb36bb6..59bc991 100644
--- a/Android.mk
+++ b/Android.mk
@@ -1,12 +1,3 @@
-# function to find all *.cpp files under a directory
-define all-cpp-files-under
-$(patsubst ./%,%, \
- $(shell cd $(LOCAL_PATH) ; \
- find $(1) -name "*.cpp" -and -not -name ".*") \
- )
-endef
-
-
LOCAL_PATH:= $(call my-dir)
NFA := src/nfa
NFC := src/nfc
@@ -20,10 +11,8 @@ D_CFLAGS := -DANDROID -DBUILDCFG=1
# Build shared library system/lib/libnfc-nci.so for stack code.
include $(CLEAR_VARS)
-LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
LOCAL_ARM_MODE := arm
LOCAL_MODULE := libnfc-nci
-LOCAL_MODULE_TAGS := optional
LOCAL_SHARED_LIBRARIES := libhardware_legacy libcutils liblog libdl libhardware
LOCAL_CFLAGS := $(D_CFLAGS)
LOCAL_C_INCLUDES := \
@@ -54,7 +43,6 @@ include $(BUILD_SHARED_LIBRARY)
# Android's generic HAL (libhardware.so) dynamically loads this shared library.
include $(CLEAR_VARS)
-LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
LOCAL_MODULE := nfc_nci.bcm2079x.default
LOCAL_MODULE_RELATIVE_PATH := hw
LOCAL_SRC_FILES := $(call all-c-files-under, $(HALIMPL)) \
@@ -62,7 +50,6 @@ LOCAL_SRC_FILES := $(call all-c-files-under, $(HALIMPL)) \
src/adaptation/CrcChecksum.cpp \
src//nfca_version.c
LOCAL_SHARED_LIBRARIES := liblog libcutils libhardware_legacy
-LOCAL_MODULE_TAGS := optional
LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/$(HALIMPL)/include \
$(LOCAL_PATH)/$(HALIMPL)/gki/ulinux \
@@ -74,7 +61,6 @@ LOCAL_C_INCLUDES := \
$(LOCAL_PATH)/$(NFA)/include \
$(LOCAL_PATH)/$(UDRV)/include
LOCAL_CFLAGS := $(D_CFLAGS) -DNFC_HAL_TARGET=TRUE -DNFC_RW_ONLY=TRUE
-LOCAL_CPPFLAGS := $(LOCAL_CFLAGS)
include $(BUILD_SHARED_LIBRARY)
diff --git a/halimpl/pn54x/Android.mk b/halimpl/pn54x/Android.mk
index c923a46..d75a654 100644
--- a/halimpl/pn54x/Android.mk
+++ b/halimpl/pn54x/Android.mk
@@ -12,24 +12,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-
-# function to find all *.cpp files under a directory
-define all-cpp-files-under
-$(patsubst ./%,%, \
- $(shell cd $(LOCAL_PATH) ; \
- find $(1) -name "*.cpp" -and -not -name ".*") \
- )
-endef
-
-LOCAL_PRELINK_MODULE := false
-LOCAL_ARM_MODE := arm
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := nfc_nci.$(TARGET_DEVICE)
LOCAL_MODULE_RELATIVE_PATH := hw
-LOCAL_SRC_FILES := $(call all-c-files-under, .) $(call all-cpp-files-under, .)
+LOCAL_SRC_FILES := $(call all-subdir-c-files) $(call all-subdir-cpp-files)
LOCAL_SHARED_LIBRARIES := liblog libcutils libhardware_legacy libdl libhardware
-LOCAL_MODULE_TAGS := optional
LOCAL_C_INCLUDES += \
$(LOCAL_PATH)/utils \