blob: c5a65d1e51c08abc0f001ac6b1347b47802c18d9 [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)
23LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res_1440p
24else
25LOCAL_RESOURCE_DIR += $(LOCAL_PATH)/res_1080p
26endif
27
28LOCAL_SRC_FILES := \
Joey4e0c7f42019-04-30 11:33:20 +020029 $(call all-java-files-under, java)
Joeyebb5f5f2019-04-23 22:37:58 +020030
31LOCAL_USE_AAPT2 := true
32
33LOCAL_STATIC_ANDROID_LIBRARIES := \
34 androidx.annotation_annotation \
35 androidx.appcompat_appcompat \
36 androidx.palette_palette \
37 androidx.recyclerview_recyclerview \
Joeyd95d3712019-04-25 14:31:44 +020038 androidx.transition_transition \
39 com.google.android.material_material
Joeyebb5f5f2019-04-23 22:37:58 +020040
41LOCAL_PACKAGE_NAME := Backgrounds
42
43LOCAL_PROGUARD_FLAG_FILES := ../../proguard-rules.pro
44
45LOCAL_AAPT_FLAGS := --auto-add-overlay
46
47LOCAL_SDK_VERSION := current
48
49include $(BUILD_PACKAGE)