blob: c3daf6eeca09c0f2d09e9458e14498f91fd9d518 [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
Ryan Mitchell8dd846c2018-11-26 14:32:40 -080018partition :=
19ifeq ($(LOCAL_ODM_MODULE),true)
20 partition := $(TARGET_OUT_ODM)
Anton Hansson95958ee2019-02-06 11:54:40 +000021else ifeq ($(LOCAL_VENDOR_MODULE),true)
22 partition := $(TARGET_OUT_VENDOR)
Ryan Mitchell8dd846c2018-11-26 14:32:40 -080023else ifeq ($(LOCAL_PRODUCT_SERVICES_MODULE),true)
24 partition := $(TARGET_OUT_PRODUCT_SERVICES)
Jakub Adameka08a1012016-10-03 09:56:16 +010025else
Anton Hansson95958ee2019-02-06 11:54:40 +000026 partition := $(TARGET_OUT_PRODUCT)
Jakub Adameka08a1012016-10-03 09:56:16 +010027endif
28
Ryan Mitchell8dd846c2018-11-26 14:32:40 -080029ifeq ($(LOCAL_RRO_THEME),)
30 LOCAL_MODULE_PATH := $(partition)/overlay
31else
32 LOCAL_MODULE_PATH := $(partition)/overlay/$(LOCAL_RRO_THEME)
33endif
Jakub Adameka08a1012016-10-03 09:56:16 +010034
Ryan Mitchell8dd846c2018-11-26 14:32:40 -080035partition :=
36
37include $(BUILD_SYSTEM)/package.mk