Alexander Martinz | 61b6a31 | 2022-04-08 16:19:59 +0200 | [diff] [blame^] | 1 | ifeq ($(TARGET_SCREEN_WIDTH),) |
| 2 | $(warning TARGET_SCREEN_WIDTH is not set, using default value: 1080) |
| 3 | TARGET_SCREEN_WIDTH := 1080 |
| 4 | endif |
| 5 | ifeq ($(TARGET_SCREEN_HEIGHT),) |
| 6 | $(warning TARGET_SCREEN_HEIGHT is not set, using default value: 1920) |
| 7 | TARGET_SCREEN_HEIGHT := 1920 |
| 8 | endif |
| 9 | |
| 10 | # e.g.: 1080x1920 |
| 11 | TARGET_SCREEN_RESOLUTION := $(TARGET_SCREEN_WIDTH)x$(TARGET_SCREEN_HEIGHT) |
| 12 | |
| 13 | # Boot and Shutdown animations |
| 14 | PRODUCT_BOOTANIMATION := $(wildcard vendor/shiftos/prebuilt/$(TARGET_SCREEN_RESOLUTION)/media/bootanimation.zip) |
| 15 | PRODUCT_SHUTANIMATION := $(wildcard vendor/shiftos/prebuilt/$(TARGET_SCREEN_RESOLUTION)/media/shutdownanimation.zip) |
| 16 | |
| 17 | ifneq ($(PRODUCT_BOOTANIMATION),) |
| 18 | PRODUCT_COPY_FILES += $(PRODUCT_BOOTANIMATION):$(TARGET_COPY_OUT_PRODUCT)/media/bootanimation.zip |
| 19 | endif |
| 20 | |
| 21 | ifneq ($(PRODUCT_SHUTANIMATION),) |
| 22 | PRODUCT_COPY_FILES += $(PRODUCT_SHUTANIMATION):$(TARGET_COPY_OUT_PRODUCT)/media/shutdownanimation.zip |
| 23 | endif |
| 24 | |
| 25 | # Remove existing bootanimation packages |
| 26 | PRODUCT_PACKAGES_REMOVAL += bootanimation.zip |