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
|
|
|
|
|
|
2016-10-19 18:42:51 +08:00
|
|
|
|
ifeq (S(LOCAL_RRO_THEME),)
|
2016-10-03 16:56:16 +08:00
|
|
|
|
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/overlay
|
|
|
|
|
else
|
2016-10-19 18:42:51 +08:00
|
|
|
|
LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/overlay/$(LOCAL_RRO_THEME)
|
2016-10-03 16:56:16 +08:00
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
include $(BUILD_SYSTEM)/package.mk
|
|
|
|
|
|