• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#############################################################################
2## Standard rules for installing runtime resouce overlay APKs.
3##
4## 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.
6##
7## If LOCAL_RRO_THEME is not set, the package will apply always, independent
8## of themes.
9##
10#############################################################################
11
12LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true
13
14ifneq ($(LOCAL_SRC_FILES),)
15  $(error runtime resource overlay package should not contain sources)
16endif
17
18partition :=
19ifeq ($(strip $(LOCAL_ODM_MODULE)),true)
20  partition := $(TARGET_OUT_ODM)
21else ifeq ($(strip $(LOCAL_VENDOR_MODULE)),true)
22  partition := $(TARGET_OUT_VENDOR)
23else ifeq ($(strip $(LOCAL_PRODUCT_SERVICES_MODULE)),true)
24  partition := $(TARGET_OUT_PRODUCT_SERVICES)
25else
26  partition := $(TARGET_OUT_PRODUCT)
27endif
28
29ifeq ($(LOCAL_RRO_THEME),)
30  LOCAL_MODULE_PATH := $(partition)/overlay
31else
32  LOCAL_MODULE_PATH := $(partition)/overlay/$(LOCAL_RRO_THEME)
33endif
34
35partition :=
36
37include $(BUILD_SYSTEM)/package.mk
38