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),) |
Alexander Martinz | 2fb2f63 | 2022-04-26 20:44:02 +0200 | [diff] [blame] | 18 | TARGET_BOOTANIMATION := $(PRODUCT_BOOTANIMATION) |
Alexander Martinz | 61b6a31 | 2022-04-08 16:19:59 +0200 | [diff] [blame] | 19 | endif |
| 20 | |
| 21 | ifneq ($(PRODUCT_SHUTANIMATION),) |
Alexander Martinz | 2fb2f63 | 2022-04-26 20:44:02 +0200 | [diff] [blame] | 22 | TARGET_SHUTANIMATION := $(PRODUCT_SHUTANIMATION) |
Alexander Martinz | 61b6a31 | 2022-04-08 16:19:59 +0200 | [diff] [blame] | 23 | endif |