blob: e5d7685db5e860060b7f24a29ac07a1d580daf44 [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 :=
joker.yanga75c9a52019-04-03 09:10:37 +080019ifeq ($(strip $(LOCAL_ODM_MODULE)),true)
Ryan Mitchell8dd846c2018-11-26 14:32:40 -080020 partition := $(TARGET_OUT_ODM)
joker.yanga75c9a52019-04-03 09:10:37 +080021else ifeq ($(strip $(LOCAL_VENDOR_MODULE)),true)
Anton Hansson95958ee2019-02-06 11:54:40 +000022 partition := $(TARGET_OUT_VENDOR)
Justin Yun6151e3f2019-06-25 15:58:13 +090023else ifeq ($(strip $(LOCAL_SYSTEM_EXT_MODULE)),true)
24 partition := $(TARGET_OUT_SYSTEM_EXT)
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