blob: c2f850a98793e3c23a1735f4364be1fb964dd75b [file] [log] [blame]
Alexander Martinz61b6a312022-04-08 16:19:59 +02001ifeq ($(TARGET_SCREEN_WIDTH),)
2 $(warning TARGET_SCREEN_WIDTH is not set, using default value: 1080)
3 TARGET_SCREEN_WIDTH := 1080
4endif
5ifeq ($(TARGET_SCREEN_HEIGHT),)
6 $(warning TARGET_SCREEN_HEIGHT is not set, using default value: 1920)
7 TARGET_SCREEN_HEIGHT := 1920
8endif
9
10# e.g.: 1080x1920
11TARGET_SCREEN_RESOLUTION := $(TARGET_SCREEN_WIDTH)x$(TARGET_SCREEN_HEIGHT)
12
13# Boot and Shutdown animations
14PRODUCT_BOOTANIMATION := $(wildcard vendor/shiftos/prebuilt/$(TARGET_SCREEN_RESOLUTION)/media/bootanimation.zip)
15PRODUCT_SHUTANIMATION := $(wildcard vendor/shiftos/prebuilt/$(TARGET_SCREEN_RESOLUTION)/media/shutdownanimation.zip)
16
17ifneq ($(PRODUCT_BOOTANIMATION),)
Alexander Martinz2fb2f632022-04-26 20:44:02 +020018 TARGET_BOOTANIMATION := $(PRODUCT_BOOTANIMATION)
Alexander Martinz61b6a312022-04-08 16:19:59 +020019endif
20
21ifneq ($(PRODUCT_SHUTANIMATION),)
Alexander Martinz2fb2f632022-04-26 20:44:02 +020022 TARGET_SHUTANIMATION := $(PRODUCT_SHUTANIMATION)
Alexander Martinz61b6a312022-04-08 16:19:59 +020023endif