|
|
|
@ -46,23 +46,13 @@ $(TARGET_GENERATED_BOOTANIMATION): $(SOONG_ZIP)
|
|
|
|
|
for part_cnt in 0 1 2 3 4; do \
|
|
|
|
|
mkdir -p $(INTERMEDIATES)/part$$part_cnt; \
|
|
|
|
|
done; \
|
|
|
|
|
mogrify -resize $$RESOLUTION -colors 250 $(INTERMEDIATES)/*/*.png; \
|
|
|
|
|
prebuilts/tools-lineage/${HOST_OS}-x86/bin/mogrify -resize $$RESOLUTION -colors 250 $(INTERMEDIATES)/*/*.png; \
|
|
|
|
|
echo "$$IMAGESCALEWIDTH $$IMAGESCALEHEIGHT 60" > $(INTERMEDIATES)/desc.txt; \
|
|
|
|
|
cat vendor/lineage/bootanimation/desc.txt >> $(INTERMEDIATES)/desc.txt
|
|
|
|
|
$(hide) $(SOONG_ZIP) -L 0 -o $(TARGET_GENERATED_BOOTANIMATION) -C $(INTERMEDIATES) -D $(INTERMEDIATES)
|
|
|
|
|
|
|
|
|
|
ifeq ($(TARGET_BOOTANIMATION),)
|
|
|
|
|
TARGET_BOOTANIMATION := $(TARGET_GENERATED_BOOTANIMATION)
|
|
|
|
|
ifeq ($(shell command -v mogrify),)
|
|
|
|
|
$(info **********************************************)
|
|
|
|
|
$(info The boot animation could not be generated as)
|
|
|
|
|
$(info ImageMagick is not installed in your system.)
|
|
|
|
|
$(info $(space))
|
|
|
|
|
$(info Please install ImageMagick from this website:)
|
|
|
|
|
$(info https://imagemagick.org/script/binary-releases.php)
|
|
|
|
|
$(info **********************************************)
|
|
|
|
|
$(error stop)
|
|
|
|
|
endif
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|