blob: 8d1b0ea6f6b3be599680843c2ed4ae78c320d13f [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)
Michael Bestascf31e1b2022-04-10 18:59:55 +030023LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res_1440p
Joeyebb5f5f2019-04-23 22:37:58 +020024else
Michael Bestascf31e1b2022-04-10 18:59:55 +030025LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res_1080p
Joeyebb5f5f2019-04-23 22:37:58 +020026endif
27
Joeyebb5f5f2019-04-23 22:37:58 +020028LOCAL_USE_AAPT2 := true
29
Joeyebb5f5f2019-04-23 22:37:58 +020030LOCAL_PACKAGE_NAME := Backgrounds
31
Michael Bestas44344d32020-12-17 16:21:15 +020032LOCAL_PRODUCT_MODULE := true
33
Joeyebb5f5f2019-04-23 22:37:58 +020034LOCAL_AAPT_FLAGS := --auto-add-overlay
35
36LOCAL_SDK_VERSION := current
37
38include $(BUILD_PACKAGE)