blob: 0d4075fe937a90b898e4cad24f84d8bb15abc73d [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
50LOCAL_STATIC_JAVA_LIBRARIES := \
51 android-support-v4 \
52 android-support-v7-appcompat \
53 android-support-v7-cardview \
54 android-support-v7-recyclerview \
55 android-support-compat \
56 android-support-design \
57 android-support-exifinterface \
58 android-support-media-compat \
59 wallpaper2-glide-target \
60 wallpaper2-disklrucache-target \
61 wallpaper2-gifdecoder-target \
62 volley \
63 libbackup \
64 icc_profiles
65
66LOCAL_SRC_FILES := $(call all-java-files-under, src) \
67 $(call all-java-files-under, src_override) \
68
69LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res \
70 $(LOCAL_PATH)/res_override \
71 prebuilts/sdk/current/support/v7/appcompat/res \
72 prebuilts/sdk/current/support/v7/cardview/res \
73 prebuilts/sdk/current/support/v7/recyclerview/res \
74 prebuilts/sdk/current/support/compat/res \
75 prebuilts/sdk/current/support/core-ui/res \
76 prebuilts/sdk/current/support/design/res \
77 prebuilts/sdk/current/support/media-compat/res \
78
79LOCAL_PROGUARD_FLAG_FILES := proguard.flags
80LOCAL_PROGUARD_ENABLED := disabled
81
82LOCAL_AAPT_FLAGS := \
83 --auto-add-overlay \
84 --extra-packages android.support.v4 \
85 --extra-packages android.support.v7.appcompat \
86 --extra-packages android.support.v7.cardview \
87 --extra-packages android.support.v7.recyclerview \
88 --extra-packages android.support.compat \
89 --extra-packages android.support.coreui \
90 --extra-packages android.support.design \
91 --extra-packages android.support.mediacompat \
92 --extra-packages android.support.transition
93
94LOCAL_SDK_VERSION := 27
95LOCAL_PACKAGE_NAME := WallpaperPicker2
96
97include $(BUILD_PACKAGE)
98
99# ==================================================
100include $(call all-makefiles-under,$(LOCAL_PATH))