blob: 9d59a35f825a563cc90fa0e01e8827862ca8f04f [file] [log] [blame]
Joeyebb5f5f2019-04-23 22:37:58 +02001#
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
17LOCAL_PATH := $(call my-dir)
18include $(CLEAR_VARS)
19
20LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
21
22ifeq ($(shell test $(TARGET_SCREEN_WIDTH) -gt 1080; echo $$?),0)
Joey273b03e2019-05-11 14:48:54 +020023LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res_1440p/common
24ifeq ($(PRODUCT_SIZE), mini)
25LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res_1440p/small
Joeyebb5f5f2019-04-23 22:37:58 +020026else
Joey273b03e2019-05-11 14:48:54 +020027LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res_1440p/full
28endif
29else
30LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res_1080p/common
31ifeq ($(PRODUCT_SIZE), mini)
32LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res_1080p/small
33else
34LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res_1080p/full
35endif
Joeyebb5f5f2019-04-23 22:37:58 +020036endif
37
Joeyebb5f5f2019-04-23 22:37:58 +020038LOCAL_USE_AAPT2 := true
39
Joeyebb5f5f2019-04-23 22:37:58 +020040LOCAL_PACKAGE_NAME := Backgrounds
41
Joeyebb5f5f2019-04-23 22:37:58 +020042LOCAL_AAPT_FLAGS := --auto-add-overlay
43
44LOCAL_SDK_VERSION := current
45
46include $(BUILD_PACKAGE)