Move bootanimation selection to its own makefile.
Proposed by Evan (@linuxman94). Signed-off-by: Carlo Savignano <stevewatersy@gmail.com> Change-Id: I43a80a604fe70c21ef108c0af735122fac6ebc82
This commit is contained in:
parent
ce52c8f9b7
commit
208b680a87
|
@ -0,0 +1,60 @@
|
|||
# Copyright (C) 2014 ParanoidAndroid Project
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Add PA bootanimation based on device resolution
|
||||
ifeq ((pa_maguro,$(TARGET_PRODUCT)))
|
||||
PRODUCT_COPY_FILES += \
|
||||
vendor/pa/prebuilt/bootanimation/1280x720.zip:system/media/bootanimation.zip
|
||||
endif
|
||||
ifeq (pa_deb,$(TARGET_PRODUCT))
|
||||
PRODUCT_COPY_FILES += \
|
||||
vendor/pa/prebuilt/bootanimation/1920x1200.zip:system/media/bootanimation.zip
|
||||
endif
|
||||
ifeq (pa_flo,$(TARGET_PRODUCT))
|
||||
PRODUCT_COPY_FILES += \
|
||||
vendor/pa/prebuilt/bootanimation/1920x1200.zip:system/media/bootanimation.zip
|
||||
endif
|
||||
ifeq (pa_grouper,$(TARGET_PRODUCT))
|
||||
PRODUCT_COPY_FILES += \
|
||||
vendor/pa/prebuilt/bootanimation/1280x720.zip:system/media/bootanimation.zip
|
||||
endif
|
||||
ifeq (pa_hammerhead,$(TARGET_PRODUCT))
|
||||
PRODUCT_COPY_FILES += \
|
||||
vendor/pa/prebuilt/bootanimation/1920x1080.zip:system/media/bootanimation.zip
|
||||
endif
|
||||
ifeq (pa_maguro,$(TARGET_PRODUCT))
|
||||
PRODUCT_COPY_FILES += \
|
||||
vendor/pa/prebuilt/bootanimation/1280x720.zip:system/media/bootanimation.zip
|
||||
endif
|
||||
ifeq (pa_mako,$(TARGET_PRODUCT))
|
||||
PRODUCT_COPY_FILES += \
|
||||
vendor/pa/prebuilt/bootanimation/1280x720.zip:system/media/bootanimation.zip
|
||||
endif
|
||||
ifeq (pa_manta,$(TARGET_PRODUCT))
|
||||
PRODUCT_COPY_FILES += \
|
||||
vendor/pa/prebuilt/bootanimation/2560x1600.zip:system/media/bootanimation.zip
|
||||
endif
|
||||
ifeq (pa_tilapia,$(TARGET_PRODUCT))
|
||||
PRODUCT_COPY_FILES += \
|
||||
vendor/pa/prebuilt/bootanimation/1280x720.zip:system/media/bootanimation.zip
|
||||
endif
|
||||
ifeq (pa_toro,$(TARGET_PRODUCT))
|
||||
PRODUCT_COPY_FILES += \
|
||||
vendor/pa/prebuilt/bootanimation/1280x720.zip:system/media/bootanimation.zip
|
||||
endif
|
||||
ifeq (pa_toroplus,$(TARGET_PRODUCT))
|
||||
PRODUCT_COPY_FILES += \
|
||||
vendor/pa/prebuilt/bootanimation/1280x720.zip:system/media/bootanimation.zip
|
||||
endif
|
||||
|
|
@ -32,15 +32,6 @@ ifneq ($(NO_OTA_BUILD),true)
|
|||
ParanoidOTA
|
||||
endif
|
||||
|
||||
# Include bootanimation
|
||||
ifneq ($(PARANOID_BOOTANIMATION_NAME),)
|
||||
PRODUCT_COPY_FILES += \
|
||||
vendor/pa/prebuilt/bootanimation/$(PARANOID_BOOTANIMATION_NAME).zip:system/media/bootanimation.zip
|
||||
else
|
||||
PRODUCT_COPY_FILES += \
|
||||
vendor/pa/prebuilt/bootanimation/XHDPI.zip:system/media/bootanimation.zip
|
||||
endif
|
||||
|
||||
# Extra properties
|
||||
PRODUCT_PROPERTY_OVERRIDES += \
|
||||
ro.pa.device=$(DEVICE)
|
||||
|
|
1
main.mk
1
main.mk
|
@ -18,6 +18,7 @@ include vendor/pa/vendor.mk
|
|||
include vendor/pa/configs/aosp_fixes.mk
|
||||
include vendor/pa/configs/system.mk
|
||||
include vendor/pa/configs/pa_overrides.mk
|
||||
include vendor/pa/configs/pa_bootanimation.mk
|
||||
include vendor/pa/configs/version.mk
|
||||
|
||||
|
||||
|
|
|
@ -15,9 +15,6 @@
|
|||
# Check for target product
|
||||
ifeq (pa_deb,$(TARGET_PRODUCT))
|
||||
|
||||
# Define PA bootanimation size
|
||||
PARANOID_BOOTANIMATION_NAME := XHDPI
|
||||
|
||||
# OVERLAY_TARGET adds overlay asset source
|
||||
OVERLAY_TARGET := pa_deb
|
||||
|
||||
|
|
|
@ -15,9 +15,6 @@
|
|||
# Check for target product
|
||||
ifeq (pa_flo,$(TARGET_PRODUCT))
|
||||
|
||||
# Define PA bootanimation size
|
||||
PARANOID_BOOTANIMATION_NAME := XHDPI
|
||||
|
||||
# OVERLAY_TARGET adds overlay asset source
|
||||
OVERLAY_TARGET := pa_flo
|
||||
|
||||
|
|
|
@ -15,9 +15,6 @@
|
|||
# Check for target product
|
||||
ifeq (pa_grouper,$(TARGET_PRODUCT))
|
||||
|
||||
# Define PA bootanimation size
|
||||
PARANOID_BOOTANIMATION_NAME := XHDPI
|
||||
|
||||
# OVERLAY_TARGET adds overlay asset source
|
||||
OVERLAY_TARGET := pa_tvdpi
|
||||
|
||||
|
|
|
@ -16,9 +16,6 @@
|
|||
|
||||
ifeq (pa_hammerhead,$(TARGET_PRODUCT))
|
||||
|
||||
# Define PA bootanimation size
|
||||
PARANOID_BOOTANIMATION_NAME := XHDPI
|
||||
|
||||
# OVERLAY_TARGET adds overlay asset source
|
||||
OVERLAY_TARGET := pa_xhdpi
|
||||
|
||||
|
|
|
@ -16,9 +16,6 @@
|
|||
|
||||
ifeq (pa_maguro,$(TARGET_PRODUCT))
|
||||
|
||||
# Define PA bootanimation size
|
||||
PARANOID_BOOTANIMATION_NAME := XHDPI
|
||||
|
||||
# OVERLAY_TARGET adds overlay asset source
|
||||
OVERLAY_TARGET := pa_xhdpi
|
||||
|
||||
|
|
|
@ -16,9 +16,6 @@
|
|||
|
||||
ifeq (pa_mako,$(TARGET_PRODUCT))
|
||||
|
||||
# Define PA bootanimation size
|
||||
PARANOID_BOOTANIMATION_NAME := XHDPI
|
||||
|
||||
# OVERLAY_TARGET adds overlay asset source
|
||||
OVERLAY_TARGET := pa_xhdpi
|
||||
|
||||
|
|
|
@ -15,9 +15,6 @@
|
|||
# Check for target product
|
||||
ifeq (pa_manta,$(TARGET_PRODUCT))
|
||||
|
||||
# Define PA bootanimation size
|
||||
PARANOID_BOOTANIMATION_NAME := XHDPI
|
||||
|
||||
# OVERLAY_TARGET adds overlay asset source
|
||||
OVERLAY_TARGET := pa_manta
|
||||
|
||||
|
|
|
@ -15,9 +15,6 @@
|
|||
# Check for target product
|
||||
ifeq (pa_tilapia,$(TARGET_PRODUCT))
|
||||
|
||||
# Define PA bootanimation size
|
||||
PARANOID_BOOTANIMATION_NAME := XHDPI
|
||||
|
||||
# OVERLAY_TARGET adds overlay asset source
|
||||
OVERLAY_TARGET := pa_tvdpi
|
||||
|
||||
|
|
|
@ -16,9 +16,6 @@
|
|||
|
||||
ifeq (pa_toro,$(TARGET_PRODUCT))
|
||||
|
||||
# Define PA bootanimation size
|
||||
PARANOID_BOOTANIMATION_NAME := XHDPI
|
||||
|
||||
# OVERLAY_TARGET adds overlay asset source
|
||||
OVERLAY_TARGET := pa_xhdpi
|
||||
|
||||
|
|
|
@ -16,9 +16,6 @@
|
|||
|
||||
ifeq (pa_toroplus,$(TARGET_PRODUCT))
|
||||
|
||||
# Define PA bootanimation size
|
||||
PARANOID_BOOTANIMATION_NAME := XHDPI
|
||||
|
||||
# OVERLAY_TARGET adds overlay asset source
|
||||
OVERLAY_TARGET := pa_xhdpi
|
||||
|
||||
|
|
Loading…
Reference in New Issue