From 03d2e91d00cb78d49fe170fb19a29107951a8c96 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Sun, 22 Jan 2017 16:59:42 +0000 Subject: android: introduce Android.common.mk to reduce boilerplate ... across the makefiles. Currently this isn't much but that will change shortly. As an added bonus this fixes all present and future cases where we've forgotten to strip out the headers from LOCAL_SRC_FILES. In a couple of cases (the tests) we start setting LOCAL_EXPORT_C_INCLUDE_DIRS, which shouldn't be an issue. Cc: Chih-Wei Huang Cc: Rob Herring Signed-off-by: Emil Velikov Reviewed-by: Rob Herring --- libkms/Android.mk | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libkms') diff --git a/libkms/Android.mk b/libkms/Android.mk index 0259ffbb..0be72054 100644 --- a/libkms/Android.mk +++ b/libkms/Android.mk @@ -26,7 +26,7 @@ LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) include $(LOCAL_PATH)/Makefile.sources -LOCAL_SRC_FILES := $(patsubst %.h, , $(LIBKMS_FILES)) +LOCAL_SRC_FILES := $(LIBKMS_FILES) ifneq ($(filter $(vmwgfx_drivers), $(DRM_GPU_DRIVERS)),) LOCAL_SRC_FILES += $(LIBKMS_VMWGFX_FILES) @@ -47,6 +47,5 @@ endif LOCAL_MODULE := libkms LOCAL_SHARED_LIBRARIES := libdrm -LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) - +include $(LIBDRM_COMMON_MK) include $(BUILD_SHARED_LIBRARY) -- cgit v1.2.3