Jakub Adamek | 3451f24 | 2016-10-19 11:42:51 +0100 | [diff] [blame] | 1 | ############################################################################# |
Jakub Adamek | a08a101 | 2016-10-03 09:56:16 +0100 | [diff] [blame] | 2 | ## Standard rules for installing runtime resouce overlay APKs. |
| 3 | ## |
Jakub Adamek | 3451f24 | 2016-10-19 11:42:51 +0100 | [diff] [blame] | 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. |
Jakub Adamek | a08a101 | 2016-10-03 09:56:16 +0100 | [diff] [blame] | 6 | ## |
Jakub Adamek | 3451f24 | 2016-10-19 11:42:51 +0100 | [diff] [blame] | 7 | ## If LOCAL_RRO_THEME is not set, the package will apply always, independent |
| 8 | ## of themes. |
| 9 | ## |
| 10 | ############################################################################# |
Jakub Adamek | a08a101 | 2016-10-03 09:56:16 +0100 | [diff] [blame] | 11 | |
| 12 | LOCAL_IS_RUNTIME_RESOURCE_OVERLAY := true |
| 13 | |
| 14 | ifneq ($(LOCAL_SRC_FILES),) |
| 15 | $(error runtime resource overlay package should not contain sources) |
| 16 | endif |
| 17 | |
Jakub Adamek | 3451f24 | 2016-10-19 11:42:51 +0100 | [diff] [blame] | 18 | ifeq (S(LOCAL_RRO_THEME),) |
Jakub Adamek | a08a101 | 2016-10-03 09:56:16 +0100 | [diff] [blame] | 19 | LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/overlay |
| 20 | else |
Jakub Adamek | 3451f24 | 2016-10-19 11:42:51 +0100 | [diff] [blame] | 21 | LOCAL_MODULE_PATH := $(TARGET_OUT_VENDOR)/overlay/$(LOCAL_RRO_THEME) |
Jakub Adamek | a08a101 | 2016-10-03 09:56:16 +0100 | [diff] [blame] | 22 | endif |
| 23 | |
| 24 | include $(BUILD_SYSTEM)/package.mk |
| 25 | |