blob: 7c76a1abe4b1e408212fd7852cf35236ef6f2825 [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),)
18 PRODUCT_COPY_FILES += $(PRODUCT_BOOTANIMATION):$(TARGET_COPY_OUT_PRODUCT)/media/bootanimation.zip
19endif
20
21ifneq ($(PRODUCT_SHUTANIMATION),)
22 PRODUCT_COPY_FILES += $(PRODUCT_SHUTANIMATION):$(TARGET_COPY_OUT_PRODUCT)/media/shutdownanimation.zip
23endif
24
25# Remove existing bootanimation packages
26PRODUCT_PACKAGES_REMOVAL += bootanimation.zip