From: Dan Willemsen Date: Fri, 4 Dec 2015 06:58:39 +0000 (-0800) Subject: Sanity check LOCAL_SRC_FILES_EXCLUDE X-Git-Tag: android-x86-7.1-r1~492^2~50^2~45^2~7^2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=c29172c333338b60a41daeac347ac8884b5075d4;p=android-x86%2Fbuild.git Sanity check LOCAL_SRC_FILES_EXCLUDE Error out if there is a file listed in LOCAL_SRC_FILES_EXCLUDE but not in LOCAL_SRC_FILES. This should catch typos or other mistakes that would otherwise be missed. Change-Id: Iaddf575a6ce35238998ac47b59591a7d05fbcd0d --- diff --git a/core/binary.mk b/core/binary.mk index a62423c8d..60a95aebb 100644 --- a/core/binary.mk +++ b/core/binary.mk @@ -177,6 +177,11 @@ my_asflags += $(LOCAL_ASFLAGS_$($(my_prefix)$(LOCAL_2ND_ARCH_VAR_PREFIX)ARCH)) $ my_c_includes += $(LOCAL_C_INCLUDES_$($(my_prefix)$(LOCAL_2ND_ARCH_VAR_PREFIX)ARCH)) $(LOCAL_C_INCLUDES_$(my_32_64_bit_suffix)) my_generated_sources += $(LOCAL_GENERATED_SOURCES_$($(my_prefix)$(LOCAL_2ND_ARCH_VAR_PREFIX)ARCH)) $(LOCAL_GENERATED_SOURCES_$(my_32_64_bit_suffix)) +my_missing_exclude_files := $(filter-out $(my_src_files),$(my_src_files_exclude)) +ifneq ($(my_missing_exclude_files),) +$(warning Files are listed in LOCAL_SRC_FILES_EXCLUDE but not LOCAL_SRC_FILES) +$(error $(my_missing_exclude_files)) +endif my_src_files := $(filter-out $(my_src_files_exclude),$(my_src_files)) my_clang := $(strip $(LOCAL_CLANG))