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:
BigBrother1984 2014-01-19 02:39:40 +01:00 committed by Andre Saddler
parent ce52c8f9b7
commit 208b680a87
13 changed files with 61 additions and 39 deletions

View File

@ -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

View File

@ -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)

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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