blob: 9b67f611c0fb045e2b6cf6bd3a6e07dea7de4682 [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
25include $(BUILD_PREBUILT)
26
27include $(CLEAR_VARS)
28LOCAL_MODULE_CLASS := JAVA_LIBRARIES
29LOCAL_MODULE := wallpaper2-disklrucache-target
30LOCAL_SDK_VERSION := current
31LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/disklrucache/SNAPSHOT/disklrucache-SNAPSHOT$(COMMON_JAVA_PACKAGE_SUFFIX)
32LOCAL_UNINSTALLABLE_MODULE := true
33include $(BUILD_PREBUILT)
34
35include $(CLEAR_VARS)
36LOCAL_MODULE_CLASS := JAVA_LIBRARIES
37LOCAL_MODULE := wallpaper2-gifdecoder-target
38LOCAL_SDK_VERSION := current
39LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/gifdecoder/SNAPSHOT/gifdecoder-SNAPSHOT$(COMMON_JAVA_PACKAGE_SUFFIX)
40LOCAL_UNINSTALLABLE_MODULE := true
41include $(BUILD_PREBUILT)
42
43#
44# Build app code.
45#
46include $(CLEAR_VARS)
47
48LOCAL_MODULE_TAGS := optional
49
Jon Miranda078ea362018-01-25 18:09:12 -080050LOCAL_USE_AAPT2 := true
51
52LOCAL_STATIC_ANDROID_LIBRARIES := \
Jon Miranda16ea1b12017-12-12 14:52:48 -080053 android-support-v4 \
54 android-support-v7-appcompat \
55 android-support-v7-cardview \
56 android-support-v7-recyclerview \
57 android-support-compat \
Jon Miranda8645c702018-02-20 14:15:11 -080058 $(ANDROID_SUPPORT_DESIGN_TARGETS) \
Jon Miranda16ea1b12017-12-12 14:52:48 -080059 android-support-exifinterface \
Jon Miranda078ea362018-01-25 18:09:12 -080060 android-support-media-compat
61
62LOCAL_STATIC_JAVA_LIBRARIES := \
Jon Miranda16ea1b12017-12-12 14:52:48 -080063 wallpaper2-glide-target \
64 wallpaper2-disklrucache-target \
65 wallpaper2-gifdecoder-target \
66 volley \
67 libbackup \
68 icc_profiles
69
70LOCAL_SRC_FILES := $(call all-java-files-under, src) \
71 $(call all-java-files-under, src_override) \
Jon Miranda623e57e2018-01-05 16:33:30 -080072 $(call all-java-files-under, ../../../external/subsampling-scale-image-view/library/src)
Jon Miranda16ea1b12017-12-12 14:52:48 -080073
Jon Miranda623e57e2018-01-05 16:33:30 -080074LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res \
75 $(LOCAL_PATH)/../../../external/subsampling-scale-image-view/library/src/main/res
Jon Miranda16ea1b12017-12-12 14:52:48 -080076
77LOCAL_PROGUARD_FLAG_FILES := proguard.flags
78LOCAL_PROGUARD_ENABLED := disabled
79
80LOCAL_AAPT_FLAGS := \
81 --auto-add-overlay \
Jon Miranda623e57e2018-01-05 16:33:30 -080082 --extra-packages com.davemorrissey.labs.subscaleview
Jon Miranda16ea1b12017-12-12 14:52:48 -080083
Jon Miranda078ea362018-01-25 18:09:12 -080084LOCAL_SDK_VERSION := current
Jon Miranda16ea1b12017-12-12 14:52:48 -080085LOCAL_PACKAGE_NAME := WallpaperPicker2
86
87include $(BUILD_PACKAGE)
88
89# ==================================================
90include $(call all-makefiles-under,$(LOCAL_PATH))