forked from openkylin/platform_build
am 3fc56a1f: am 77493047: Merge "Add support for LOCAL_SRC_FILES_EXCLUDE"
am: fa912eb293
* commit 'fa912eb2935aefba2826109ffbd19fd5556c9668':
Add support for LOCAL_SRC_FILES_EXCLUDE
This commit is contained in:
commit
112a39da7d
|
@ -34,6 +34,7 @@ endif
|
||||||
# Because the same LOCAL_ variables may be used to define modules for both 1st arch and 2nd arch,
|
# Because the same LOCAL_ variables may be used to define modules for both 1st arch and 2nd arch,
|
||||||
# we can't modify them in place.
|
# we can't modify them in place.
|
||||||
my_src_files := $(LOCAL_SRC_FILES)
|
my_src_files := $(LOCAL_SRC_FILES)
|
||||||
|
my_src_files_exclude := $(LOCAL_SRC_FILES_EXCLUDE)
|
||||||
my_static_libraries := $(LOCAL_STATIC_LIBRARIES)
|
my_static_libraries := $(LOCAL_STATIC_LIBRARIES)
|
||||||
my_whole_static_libraries := $(LOCAL_WHOLE_STATIC_LIBRARIES)
|
my_whole_static_libraries := $(LOCAL_WHOLE_STATIC_LIBRARIES)
|
||||||
my_shared_libraries := $(LOCAL_SHARED_LIBRARIES)
|
my_shared_libraries := $(LOCAL_SHARED_LIBRARIES)
|
||||||
|
@ -167,6 +168,7 @@ my_generated_sources += $(LOCAL_GENERATED_SOURCES_$($(my_prefix)OS))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
my_src_files += $(LOCAL_SRC_FILES_$($(my_prefix)$(LOCAL_2ND_ARCH_VAR_PREFIX)ARCH)) $(LOCAL_SRC_FILES_$(my_32_64_bit_suffix))
|
my_src_files += $(LOCAL_SRC_FILES_$($(my_prefix)$(LOCAL_2ND_ARCH_VAR_PREFIX)ARCH)) $(LOCAL_SRC_FILES_$(my_32_64_bit_suffix))
|
||||||
|
my_src_files_exclude += $(LOCAL_SRC_FILES_EXCLUDE_$($(my_prefix)$(LOCAL_2ND_ARCH_VAR_PREFIX)ARCH)) $(LOCAL_SRC_FILES_EXCLUDE_$(my_32_64_bit_suffix))
|
||||||
my_shared_libraries += $(LOCAL_SHARED_LIBRARIES_$($(my_prefix)$(LOCAL_2ND_ARCH_VAR_PREFIX)ARCH)) $(LOCAL_SHARED_LIBRARIES_$(my_32_64_bit_suffix))
|
my_shared_libraries += $(LOCAL_SHARED_LIBRARIES_$($(my_prefix)$(LOCAL_2ND_ARCH_VAR_PREFIX)ARCH)) $(LOCAL_SHARED_LIBRARIES_$(my_32_64_bit_suffix))
|
||||||
my_cflags += $(LOCAL_CFLAGS_$($(my_prefix)$(LOCAL_2ND_ARCH_VAR_PREFIX)ARCH)) $(LOCAL_CFLAGS_$(my_32_64_bit_suffix))
|
my_cflags += $(LOCAL_CFLAGS_$($(my_prefix)$(LOCAL_2ND_ARCH_VAR_PREFIX)ARCH)) $(LOCAL_CFLAGS_$(my_32_64_bit_suffix))
|
||||||
my_cppflags += $(LOCAL_CPPFLAGS_$($(my_prefix)$(LOCAL_2ND_ARCH_VAR_PREFIX)ARCH)) $(LOCAL_CPPFLAGS_$(my_32_64_bit_suffix))
|
my_cppflags += $(LOCAL_CPPFLAGS_$($(my_prefix)$(LOCAL_2ND_ARCH_VAR_PREFIX)ARCH)) $(LOCAL_CPPFLAGS_$(my_32_64_bit_suffix))
|
||||||
|
@ -175,6 +177,8 @@ 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_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_generated_sources += $(LOCAL_GENERATED_SOURCES_$($(my_prefix)$(LOCAL_2ND_ARCH_VAR_PREFIX)ARCH)) $(LOCAL_GENERATED_SOURCES_$(my_32_64_bit_suffix))
|
||||||
|
|
||||||
|
my_src_files := $(filter-out $(my_src_files_exclude),$(my_src_files))
|
||||||
|
|
||||||
my_clang := $(strip $(LOCAL_CLANG))
|
my_clang := $(strip $(LOCAL_CLANG))
|
||||||
ifdef LOCAL_CLANG_$(my_32_64_bit_suffix)
|
ifdef LOCAL_CLANG_$(my_32_64_bit_suffix)
|
||||||
my_clang := $(strip $(LOCAL_CLANG_$(my_32_64_bit_suffix)))
|
my_clang := $(strip $(LOCAL_CLANG_$(my_32_64_bit_suffix)))
|
||||||
|
|
|
@ -28,6 +28,7 @@ LOCAL_REQUIRED_MODULES:=
|
||||||
LOCAL_ACP_UNAVAILABLE:=
|
LOCAL_ACP_UNAVAILABLE:=
|
||||||
LOCAL_MODULE_TAGS:=
|
LOCAL_MODULE_TAGS:=
|
||||||
LOCAL_SRC_FILES:=
|
LOCAL_SRC_FILES:=
|
||||||
|
LOCAL_SRC_FILES_EXCLUDE:=
|
||||||
LOCAL_PREBUILT_OBJ_FILES:=
|
LOCAL_PREBUILT_OBJ_FILES:=
|
||||||
LOCAL_STATIC_JAVA_LIBRARIES:=
|
LOCAL_STATIC_JAVA_LIBRARIES:=
|
||||||
LOCAL_STATIC_JAVA_AAR_LIBRARIES:=
|
LOCAL_STATIC_JAVA_AAR_LIBRARIES:=
|
||||||
|
@ -193,6 +194,7 @@ LOCAL_MODULE_HOST_OS:=
|
||||||
|
|
||||||
# arch specific variables
|
# arch specific variables
|
||||||
LOCAL_SRC_FILES_$(TARGET_ARCH):=
|
LOCAL_SRC_FILES_$(TARGET_ARCH):=
|
||||||
|
LOCAL_SRC_FILES_EXCLUDE_$(TARGET_ARCH):=
|
||||||
LOCAL_CFLAGS_$(TARGET_ARCH):=
|
LOCAL_CFLAGS_$(TARGET_ARCH):=
|
||||||
LOCAL_CLANG_CFLAGS_$(TARGET_ARCH):=
|
LOCAL_CLANG_CFLAGS_$(TARGET_ARCH):=
|
||||||
LOCAL_CPPFLAGS_$(TARGET_ARCH):=
|
LOCAL_CPPFLAGS_$(TARGET_ARCH):=
|
||||||
|
@ -211,6 +213,7 @@ LOCAL_CLANG_$(TARGET_ARCH):=
|
||||||
LOCAL_PREBUILT_JNI_LIBS_$(TARGET_ARCH):=
|
LOCAL_PREBUILT_JNI_LIBS_$(TARGET_ARCH):=
|
||||||
ifdef TARGET_2ND_ARCH
|
ifdef TARGET_2ND_ARCH
|
||||||
LOCAL_SRC_FILES_$(TARGET_2ND_ARCH):=
|
LOCAL_SRC_FILES_$(TARGET_2ND_ARCH):=
|
||||||
|
LOCAL_SRC_FILES_EXCLUDE_$(TARGET_2ND_ARCH):=
|
||||||
LOCAL_CFLAGS_$(TARGET_2ND_ARCH):=
|
LOCAL_CFLAGS_$(TARGET_2ND_ARCH):=
|
||||||
LOCAL_CLANG_CFLAGS_$(TARGET_2ND_ARCH):=
|
LOCAL_CLANG_CFLAGS_$(TARGET_2ND_ARCH):=
|
||||||
LOCAL_CPPFLAGS_$(TARGET_2ND_ARCH):=
|
LOCAL_CPPFLAGS_$(TARGET_2ND_ARCH):=
|
||||||
|
@ -229,6 +232,7 @@ LOCAL_CLANG_$(TARGET_2ND_ARCH):=
|
||||||
LOCAL_PREBUILT_JNI_LIBS_$(TARGET_2ND_ARCH):=
|
LOCAL_PREBUILT_JNI_LIBS_$(TARGET_2ND_ARCH):=
|
||||||
endif
|
endif
|
||||||
LOCAL_SRC_FILES_$(HOST_ARCH):=
|
LOCAL_SRC_FILES_$(HOST_ARCH):=
|
||||||
|
LOCAL_SRC_FILES_EXCLUDE_$(HOST_ARCH):=
|
||||||
LOCAL_CFLAGS_$(HOST_ARCH):=
|
LOCAL_CFLAGS_$(HOST_ARCH):=
|
||||||
LOCAL_CLANG_CFLAGS_$(HOST_ARCH):=
|
LOCAL_CLANG_CFLAGS_$(HOST_ARCH):=
|
||||||
LOCAL_CPPFLAGS_$(HOST_ARCH):=
|
LOCAL_CPPFLAGS_$(HOST_ARCH):=
|
||||||
|
@ -246,6 +250,7 @@ LOCAL_REQUIRED_MODULES_$(HOST_ARCH):=
|
||||||
LOCAL_CLANG_$(HOST_ARCH):=
|
LOCAL_CLANG_$(HOST_ARCH):=
|
||||||
ifdef HOST_2ND_ARCH
|
ifdef HOST_2ND_ARCH
|
||||||
LOCAL_SRC_FILES_$(HOST_2ND_ARCH):=
|
LOCAL_SRC_FILES_$(HOST_2ND_ARCH):=
|
||||||
|
LOCAL_SRC_FILES_EXCLUDE_$(HOST_2ND_ARCH):=
|
||||||
LOCAL_CFLAGS_$(HOST_2ND_ARCH):=
|
LOCAL_CFLAGS_$(HOST_2ND_ARCH):=
|
||||||
LOCAL_CLANG_CFLAGS_$(HOST_2ND_ARCH):=
|
LOCAL_CLANG_CFLAGS_$(HOST_2ND_ARCH):=
|
||||||
LOCAL_CPPFLAGS_$(HOST_2ND_ARCH):=
|
LOCAL_CPPFLAGS_$(HOST_2ND_ARCH):=
|
||||||
|
@ -299,6 +304,8 @@ endif
|
||||||
|
|
||||||
LOCAL_SRC_FILES_32:=
|
LOCAL_SRC_FILES_32:=
|
||||||
LOCAL_SRC_FILES_64:=
|
LOCAL_SRC_FILES_64:=
|
||||||
|
LOCAL_SRC_FILES_EXCLUDE_32:=
|
||||||
|
LOCAL_SRC_FILES_EXCLUDE_64:=
|
||||||
LOCAL_SHARED_LIBRARIES_32:=
|
LOCAL_SHARED_LIBRARIES_32:=
|
||||||
LOCAL_SHARED_LIBRARIES_64:=
|
LOCAL_SHARED_LIBRARIES_64:=
|
||||||
LOCAL_STATIC_LIBRARIES_32:=
|
LOCAL_STATIC_LIBRARIES_32:=
|
||||||
|
|
Loading…
Reference in New Issue