diff options
author | Griffin Millender <griffinn.millender@gmail.com> | 2016-10-07 18:16:06 -0500 |
---|---|---|
committer | Zhao Wei Liew <zhaoweiliew@gmail.com> | 2017-01-04 11:05:55 +0800 |
commit | 5517e01a9e6b76343730f676be31b62cac809f5e (patch) | |
tree | bb4dc0cdeee476a59e5bdfa33186d36741dbb940 /config/common.mk | |
parent | b20aa05024c626174f788eeb0f4259f41163b680 (diff) | |
download | vendor_replicant-5517e01a9e6b76343730f676be31b62cac809f5e.zip vendor_replicant-5517e01a9e6b76343730f676be31b62cac809f5e.tar.gz vendor_replicant-5517e01a9e6b76343730f676be31b62cac809f5e.tar.bz2 |
cm: Rework boot animation generation
Keep the largest bootanimation extracted
and resize it at build-time.
Change-Id: Iee32f18440ff955d13ed85b273e97cbd540721fc
Diffstat (limited to 'config/common.mk')
-rw-r--r-- | config/common.mk | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/config/common.mk b/config/common.mk index 2b8c10f..969bd87 100644 --- a/config/common.mk +++ b/config/common.mk @@ -1,38 +1,5 @@ PRODUCT_BRAND ?= cyanogenmod -ifneq ($(TARGET_SCREEN_WIDTH) $(TARGET_SCREEN_HEIGHT),$(space)) -# determine the smaller dimension -TARGET_BOOTANIMATION_SIZE := $(shell \ - if [ $(TARGET_SCREEN_WIDTH) -lt $(TARGET_SCREEN_HEIGHT) ]; then \ - echo $(TARGET_SCREEN_WIDTH); \ - else \ - echo $(TARGET_SCREEN_HEIGHT); \ - fi ) - -# get a sorted list of the sizes -bootanimation_sizes := $(subst .zip,, $(shell ls vendor/cm/prebuilt/common/bootanimation)) -bootanimation_sizes := $(shell echo -e $(subst $(space),'\n',$(bootanimation_sizes)) | sort -rn) - -# find the appropriate size and set -define check_and_set_bootanimation -$(eval TARGET_BOOTANIMATION_NAME := $(shell \ - if [ -z "$(TARGET_BOOTANIMATION_NAME)" ]; then - if [ $(1) -le $(TARGET_BOOTANIMATION_SIZE) ]; then \ - echo $(1); \ - exit 0; \ - fi; - fi; - echo $(TARGET_BOOTANIMATION_NAME); )) -endef -$(foreach size,$(bootanimation_sizes), $(call check_and_set_bootanimation,$(size))) - -ifeq ($(TARGET_BOOTANIMATION_HALF_RES),true) -PRODUCT_BOOTANIMATION := vendor/cm/prebuilt/common/bootanimation/halfres/$(TARGET_BOOTANIMATION_NAME).zip -else -PRODUCT_BOOTANIMATION := vendor/cm/prebuilt/common/bootanimation/$(TARGET_BOOTANIMATION_NAME).zip -endif -endif - PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0 ifeq ($(PRODUCT_GMS_CLIENTID_BASE),) |