Joey | ebb5f5f | 2019-04-23 22:37:58 +0200 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2017-2018 The LineageOS Project |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | |
| 17 | LOCAL_PATH := $(call my-dir) |
| 18 | include $(CLEAR_VARS) |
| 19 | |
| 20 | LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res |
| 21 | |
| 22 | ifeq ($(shell test $(TARGET_SCREEN_WIDTH) -gt 1080; echo $$?),0) |
Joey | 273b03e | 2019-05-11 14:48:54 +0200 | [diff] [blame] | 23 | LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res_1440p/common |
| 24 | ifeq ($(PRODUCT_SIZE), mini) |
| 25 | LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res_1440p/small |
Joey | ebb5f5f | 2019-04-23 22:37:58 +0200 | [diff] [blame] | 26 | else |
Joey | 273b03e | 2019-05-11 14:48:54 +0200 | [diff] [blame] | 27 | LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res_1440p/full |
| 28 | endif |
| 29 | else |
| 30 | LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res_1080p/common |
| 31 | ifeq ($(PRODUCT_SIZE), mini) |
| 32 | LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res_1080p/small |
| 33 | else |
| 34 | LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res_1080p/full |
| 35 | endif |
Joey | ebb5f5f | 2019-04-23 22:37:58 +0200 | [diff] [blame] | 36 | endif |
| 37 | |
Joey | ebb5f5f | 2019-04-23 22:37:58 +0200 | [diff] [blame] | 38 | LOCAL_USE_AAPT2 := true |
| 39 | |
Joey | ebb5f5f | 2019-04-23 22:37:58 +0200 | [diff] [blame] | 40 | LOCAL_PACKAGE_NAME := Backgrounds |
| 41 | |
Joey | ebb5f5f | 2019-04-23 22:37:58 +0200 | [diff] [blame] | 42 | LOCAL_AAPT_FLAGS := --auto-add-overlay |
| 43 | |
| 44 | LOCAL_SDK_VERSION := current |
| 45 | |
| 46 | include $(BUILD_PACKAGE) |