Commit ef4b9105 authored by Romain Hunault's avatar Romain Hunault

Merge remote-tracking branch 'origin/lineage-16.0' into v1-pie

parents 4ab4f936 bc4bce82
...@@ -25,7 +25,8 @@ ifeq ($(TARGET_SCREEN_HEIGHT),) ...@@ -25,7 +25,8 @@ ifeq ($(TARGET_SCREEN_HEIGHT),)
endif endif
define build-bootanimation define build-bootanimation
sh vendor/lineage/bootanimation/generate-bootanimation.sh \ $(shell) vendor/lineage/bootanimation/generate-bootanimation.sh \
$(PRODUCT_OUT) \
$(TARGET_SCREEN_WIDTH) \ $(TARGET_SCREEN_WIDTH) \
$(TARGET_SCREEN_HEIGHT) \ $(TARGET_SCREEN_HEIGHT) \
$(TARGET_BOOTANIMATION_HALF_RES) $(TARGET_BOOTANIMATION_HALF_RES)
......
#!/bin/bash #!/bin/bash
WIDTH="$1" PRODUCT_OUT="$1"
HEIGHT="$2" WIDTH="$2"
HALF_RES="$3" HEIGHT="$3"
OUT="$ANDROID_PRODUCT_OUT/obj/BOOTANIMATION" HALF_RES="$4"
OUT="$PRODUCT_OUT/obj/BOOTANIMATION"
if [ "$HEIGHT" -lt "$WIDTH" ]; then if [ "$HEIGHT" -lt "$WIDTH" ]; then
IMAGEWIDTH="$HEIGHT" IMAGEWIDTH="$HEIGHT"
...@@ -24,7 +26,7 @@ RESOLUTION=""$IMAGEWIDTH"x"$IMAGEHEIGHT"" ...@@ -24,7 +26,7 @@ RESOLUTION=""$IMAGEWIDTH"x"$IMAGEHEIGHT""
for part_cnt in 0 1 2 3 4 for part_cnt in 0 1 2 3 4
do do
mkdir -p $ANDROID_PRODUCT_OUT/obj/BOOTANIMATION/bootanimation/part$part_cnt mkdir -p "$OUT/bootanimation/part$part_cnt"
done done
tar xfp "vendor/lineage/bootanimation/bootanimation.tar" -C "$OUT/bootanimation/" tar xfp "vendor/lineage/bootanimation/bootanimation.tar" -C "$OUT/bootanimation/"
mogrify -resize $RESOLUTION -colors 250 "$OUT/bootanimation/"*"/"*".png" mogrify -resize $RESOLUTION -colors 250 "$OUT/bootanimation/"*"/"*".png"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment