blob: 430b443d3458a5ec09ced05a2ceda6936ea79b69 [file] [log] [blame]
Jon Miranda16ea1b12017-12-12 14:52:48 -08001#
2# Copyright (C) 2017 The Android Open Source 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)
18
19include $(CLEAR_VARS)
20LOCAL_MODULE_CLASS := JAVA_LIBRARIES
21LOCAL_MODULE := wallpaper2-glide-target
22LOCAL_SDK_VERSION := current
23LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/glide/SNAPSHOT/glide-SNAPSHOT$(COMMON_JAVA_PACKAGE_SUFFIX)
24LOCAL_UNINSTALLABLE_MODULE := true
Santiago Etchebehere8dbefef2019-08-01 17:32:19 -070025LOCAL_JETIFIER_ENABLED := true
Jon Miranda16ea1b12017-12-12 14:52:48 -080026include $(BUILD_PREBUILT)
27
28include $(CLEAR_VARS)
29LOCAL_MODULE_CLASS := JAVA_LIBRARIES
30LOCAL_MODULE := wallpaper2-disklrucache-target
31LOCAL_SDK_VERSION := current
32LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/disklrucache/SNAPSHOT/disklrucache-SNAPSHOT$(COMMON_JAVA_PACKAGE_SUFFIX)
33LOCAL_UNINSTALLABLE_MODULE := true
34include $(BUILD_PREBUILT)
35
36include $(CLEAR_VARS)
37LOCAL_MODULE_CLASS := JAVA_LIBRARIES
38LOCAL_MODULE := wallpaper2-gifdecoder-target
39LOCAL_SDK_VERSION := current
40LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/gifdecoder/SNAPSHOT/gifdecoder-SNAPSHOT$(COMMON_JAVA_PACKAGE_SUFFIX)
41LOCAL_UNINSTALLABLE_MODULE := true
42include $(BUILD_PREBUILT)
43
Sunny Goyal8600a3f2018-08-15 12:48:01 -070044include $(CLEAR_VARS)
45LOCAL_USE_AAPT2 := true
46LOCAL_AAPT2_ONLY := true
47LOCAL_MODULE_TAGS := optional
48
49LOCAL_STATIC_ANDROID_LIBRARIES := android-support-exifinterface
50LOCAL_SRC_FILES := $(call all-java-files-under, ../../../external/subsampling-scale-image-view/library/src)
51LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/../../../external/subsampling-scale-image-view/library/src/main/res
52
53LOCAL_PROGUARD_ENABLED := disabled
54
55LOCAL_SDK_VERSION := current
Santiago Etchebehere8cad0dd2019-10-17 10:52:39 -070056LOCAL_MIN_SDK_VERSION := 26
Sunny Goyal8600a3f2018-08-15 12:48:01 -070057LOCAL_MODULE := wallpaper-subsampling-scale-image-view
58LOCAL_MANIFEST_FILE := ../../../external/subsampling-scale-image-view/library/src/main/AndroidManifest.xml
59
60include $(BUILD_STATIC_JAVA_LIBRARY)
61
Santiago Etchebehere7d2741f2018-11-27 13:24:12 -080062
Jon Miranda16ea1b12017-12-12 14:52:48 -080063#
Santiago Etchebehere7d2741f2018-11-27 13:24:12 -080064# Build rule for WallpaperPicker2 dependencies lib.
Jon Miranda16ea1b12017-12-12 14:52:48 -080065#
66include $(CLEAR_VARS)
Jon Miranda078ea362018-01-25 18:09:12 -080067LOCAL_USE_AAPT2 := true
Santiago Etchebehere7d2741f2018-11-27 13:24:12 -080068LOCAL_MODULE_TAGS := optional
Jon Miranda078ea362018-01-25 18:09:12 -080069
70LOCAL_STATIC_ANDROID_LIBRARIES := \
Sunny Goyal8600a3f2018-08-15 12:48:01 -070071 androidx.appcompat_appcompat \
72 androidx.cardview_cardview \
73 androidx.recyclerview_recyclerview \
Santiago Etchebehere4ecb6aa2019-11-07 11:48:58 -080074 androidx.slice_slice-view \
Santiago Etchebehere0b5a0a12019-05-01 15:34:25 -070075 androidx-constraintlayout_constraintlayout \
Sunny Goyal8600a3f2018-08-15 12:48:01 -070076 com.google.android.material_material \
77 androidx.exifinterface_exifinterface \
78 wallpaper-subsampling-scale-image-view
Jon Miranda078ea362018-01-25 18:09:12 -080079
80LOCAL_STATIC_JAVA_LIBRARIES := \
Jon Miranda16ea1b12017-12-12 14:52:48 -080081 wallpaper2-glide-target \
82 wallpaper2-disklrucache-target \
83 wallpaper2-gifdecoder-target \
84 volley \
Winson Chung18043062020-03-16 21:07:10 +000085 libbackup \
86 SystemUISharedLib
Jon Miranda16ea1b12017-12-12 14:52:48 -080087
Santiago Etchebehere7d2741f2018-11-27 13:24:12 -080088LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
89
90LOCAL_PROGUARD_ENABLED := disabled
91LOCAL_MANIFEST_FILE := AndroidManifest.xml
Hyunyoung Song03512b52019-02-22 21:35:37 -080092
Winson Chung9ef6c942020-03-16 21:07:10 +000093ifneq (,$(wildcard frameworks/base))
94 LOCAL_PRIVATE_PLATFORM_APIS := true
95else
96 LOCAL_SDK_VERSION := current
97endif
Santiago Etchebehere7d2741f2018-11-27 13:24:12 -080098LOCAL_MODULE := WallpaperPicker2CommonDepsLib
99LOCAL_PRIVILEGED_MODULE := true
100
101include $(BUILD_STATIC_JAVA_LIBRARY)
102
103#
104# Build app code.
105#
106include $(CLEAR_VARS)
107
108LOCAL_MODULE_TAGS := optional
109
110LOCAL_USE_AAPT2 := true
111
112LOCAL_STATIC_ANDROID_LIBRARIES := WallpaperPicker2CommonDepsLib
113
Jon Miranda16ea1b12017-12-12 14:52:48 -0800114LOCAL_SRC_FILES := $(call all-java-files-under, src) \
Sunny Goyal8600a3f2018-08-15 12:48:01 -0700115 $(call all-java-files-under, src_override)
Jon Miranda16ea1b12017-12-12 14:52:48 -0800116
Sunny Goyal8600a3f2018-08-15 12:48:01 -0700117LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
Jon Miranda16ea1b12017-12-12 14:52:48 -0800118
119LOCAL_PROGUARD_FLAG_FILES := proguard.flags
120LOCAL_PROGUARD_ENABLED := disabled
121
Santiago Etchebehere4ecb6aa2019-11-07 11:48:58 -0800122LOCAL_PRIVILEGED_MODULE := true
123
124ifneq (,$(wildcard frameworks/base))
125 LOCAL_PRIVATE_PLATFORM_APIS := true
126else
127 LOCAL_SDK_VERSION := system_current
128 LOCAL_STATIC_JAVA_LIBRARIES += libSharedWallpaper
129endif
130
Jon Miranda16ea1b12017-12-12 14:52:48 -0800131LOCAL_PACKAGE_NAME := WallpaperPicker2
Sunny Goyal8600a3f2018-08-15 12:48:01 -0700132LOCAL_JETIFIER_ENABLED := true
Jon Miranda16ea1b12017-12-12 14:52:48 -0800133
Hyunyoung Song03512b52019-02-22 21:35:37 -0800134include $(BUILD_PACKAGE)
Santiago Etchebehere8cad0dd2019-10-17 10:52:39 -0700135
136include $(call all-makefiles-under,$(LOCAL_PATH))