blob: 0b4a0c43447bdd0e140f8b39b642bf8851f3dc03 [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)
21else ifeq ($(LOCAL_PRODUCT_MODULE),true)
22 partition := $(TARGET_OUT_PRODUCT)
23else ifeq ($(LOCAL_PRODUCT_SERVICES_MODULE),true)
24 partition := $(TARGET_OUT_PRODUCT_SERVICES)
Jakub Adameka08a1012016-10-03 09:56:16 +010025else
Ryan Mitchell8dd846c2018-11-26 14:32:40 -080026 partition := $(TARGET_OUT_VENDOR)
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