2016-10-19 18:42:51 +08:00
|
|
|
|
#############################################################################
|
2016-10-03 16:56:16 +08:00
|
|
|
|
## Standard rules for installing runtime resouce overlay APKs.
|
|
|
|
|
##
|
2016-10-19 18:42:51 +08:00
|
|
|
|
## Set LOCAL_RRO_THEME to the theme name if the package should apply only to
|
|
|
|
|
## a particular theme as set by ro.boot.vendor.overlay.theme system property.
|
2016-10-03 16:56:16 +08:00
|
|
|
|
##
|
2016-10-19 18:42:51 +08:00
|
|
|
|
## If LOCAL_RRO_THEME is not set, the package will apply always, independent
|
|
|
|
|
## of themes.
|
|
|
|
|
##
|
|
|
|
|
#############################################################################
|
2016-10-03 16:56:16 +08:00
|
|
|
|
|
|
|
|
|
LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
|
|
|
|
|
|
|
|
|
|
ifneq ($(LOCAL_SRC_FILES),)
|
|
|
|
|
$(error runtime resource overlay package should not contain sources)
|
|
|
|
|
endif
|
|
|
|
|
|
2018-11-27 06:32:40 +08:00
|
|
|
|
partition :=
|
2019-04-03 09:10:37 +08:00
|
|
|
|
ifeq ($(strip $(LOCAL_ODM_MODULE)),true)
|
2018-11-27 06:32:40 +08:00
|
|
|
|
partition := $(TARGET_OUT_ODM)
|
2019-04-03 09:10:37 +08:00
|
|
|
|
else ifeq ($(strip $(LOCAL_VENDOR_MODULE)),true)
|
2019-02-06 19:54:40 +08:00
|
|
|
|
partition := $(TARGET_OUT_VENDOR)
|
2019-06-25 14:58:13 +08:00
|
|
|
|
else ifeq ($(strip $(LOCAL_SYSTEM_EXT_MODULE)),true)
|
|
|
|
|
partition := $(TARGET_OUT_SYSTEM_EXT)
|
2018-11-27 06:32:40 +08:00
|
|
|
|
else
|
2019-02-06 19:54:40 +08:00
|
|
|
|
partition := $(TARGET_OUT_PRODUCT)
|
2018-11-27 06:32:40 +08:00
|
|
|
|
endif
|
|
|
|
|
|
2017-03-31 15:33:45 +08:00
|
|
|
|
ifeq ($(LOCAL_RRO_THEME),)
|
2018-11-27 06:32:40 +08:00
|
|
|
|
LOCAL_MODULE_PATH := $(partition)/overlay
|
2016-10-03 16:56:16 +08:00
|
|
|
|
else
|
2018-11-27 06:32:40 +08:00
|
|
|
|
LOCAL_MODULE_PATH := $(partition)/overlay/$(LOCAL_RRO_THEME)
|
2016-10-03 16:56:16 +08:00
|
|
|
|
endif
|
|
|
|
|
|
2019-12-18 04:19:15 +08:00
|
|
|
|
# Do not remove resources without default values nor dedupe resource
|
|
|
|
|
# configurations with the same value
|
|
|
|
|
LOCAL_AAPT_FLAGS += \
|
|
|
|
|
--no-resource-deduping \
|
|
|
|
|
--no-resource-removal
|
|
|
|
|
|
2018-11-27 06:32:40 +08:00
|
|
|
|
partition :=
|
2016-10-03 16:56:16 +08:00
|
|
|
|
|
2018-11-27 06:32:40 +08:00
|
|
|
|
include $(BUILD_SYSTEM)/package.mk
|