blob: ffefb9cbfe7cfeb5a3b322f0c937425f0f68dfc0 [file] [log] [blame]
Jakub Adamek3451f242016-10-19 11:42:51 +01001#############################################################################
Jakub Adameka08a1012016-10-03 09:56:16 +01002## Standard rules for installing runtime resouce overlay APKs.
3##
Jakub Adamek3451f242016-10-19 11:42:51 +01004## Set LOCAL_RRO_THEME to the theme name if the package should apply only to
5## a particular theme as set by ro.boot.vendor.overlay.theme system property.
Jakub Adameka08a1012016-10-03 09:56:16 +01006##
Jakub Adamek3451f242016-10-19 11:42:51 +01007## If LOCAL_RRO_THEME is not set, the package will apply always, independent
8## of themes.
9##
10#############################################################################
Jakub Adameka08a1012016-10-03 09:56:16 +010011
12LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
13
14ifneq ($(LOCAL_SRC_FILES),)
15 $(error runtime resource overlay package should not contain sources)
16endif
17
Hung-ying Tyand4bee6c2017-03-31 15:33:45 +080018ifeq ($(LOCAL_RRO_THEME),)
Jakub Adameka08a1012016-10-03 09:56:16 +010019 LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/overlay
20else
Jakub Adamek3451f242016-10-19 11:42:51 +010021 LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/overlay/$(LOCAL_RRO_THEME)
Jakub Adameka08a1012016-10-03 09:56:16 +010022endif
23
24include $(BUILD_SYSTEM)/package.mk
25