Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 1 | # |
| 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 | |
| 17 | LOCAL_PATH := $(call my-dir) |
| 18 | |
| 19 | include $(CLEAR_VARS) |
| 20 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 21 | LOCAL_MODULE := wallpaper2-glide-target |
| 22 | LOCAL_SDK_VERSION := current |
| 23 | LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/glide/SNAPSHOT/glide-SNAPSHOT$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 24 | LOCAL_UNINSTALLABLE_MODULE := true |
| 25 | include $(BUILD_PREBUILT) |
| 26 | |
| 27 | include $(CLEAR_VARS) |
| 28 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 29 | LOCAL_MODULE := wallpaper2-disklrucache-target |
| 30 | LOCAL_SDK_VERSION := current |
| 31 | LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/disklrucache/SNAPSHOT/disklrucache-SNAPSHOT$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 32 | LOCAL_UNINSTALLABLE_MODULE := true |
| 33 | include $(BUILD_PREBUILT) |
| 34 | |
| 35 | include $(CLEAR_VARS) |
| 36 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 37 | LOCAL_MODULE := wallpaper2-gifdecoder-target |
| 38 | LOCAL_SDK_VERSION := current |
| 39 | LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/gifdecoder/SNAPSHOT/gifdecoder-SNAPSHOT$(COMMON_JAVA_PACKAGE_SUFFIX) |
| 40 | LOCAL_UNINSTALLABLE_MODULE := true |
| 41 | include $(BUILD_PREBUILT) |
| 42 | |
| 43 | # |
| 44 | # Build app code. |
| 45 | # |
| 46 | include $(CLEAR_VARS) |
| 47 | |
| 48 | LOCAL_MODULE_TAGS := optional |
| 49 | |
Jon Miranda | 078ea36 | 2018-01-25 18:09:12 -0800 | [diff] [blame] | 50 | LOCAL_USE_AAPT2 := true |
| 51 | |
| 52 | LOCAL_STATIC_ANDROID_LIBRARIES := \ |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 53 | android-support-v4 \ |
| 54 | android-support-v7-appcompat \ |
| 55 | android-support-v7-cardview \ |
| 56 | android-support-v7-recyclerview \ |
| 57 | android-support-compat \ |
Jon Miranda | 8645c70 | 2018-02-20 14:15:11 -0800 | [diff] [blame] | 58 | $(ANDROID_SUPPORT_DESIGN_TARGETS) \ |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 59 | android-support-exifinterface \ |
Jon Miranda | 078ea36 | 2018-01-25 18:09:12 -0800 | [diff] [blame] | 60 | android-support-media-compat |
| 61 | |
| 62 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 63 | wallpaper2-glide-target \ |
| 64 | wallpaper2-disklrucache-target \ |
| 65 | wallpaper2-gifdecoder-target \ |
| 66 | volley \ |
| 67 | libbackup \ |
| 68 | icc_profiles |
| 69 | |
| 70 | LOCAL_SRC_FILES := $(call all-java-files-under, src) \ |
| 71 | $(call all-java-files-under, src_override) \ |
Jon Miranda | 623e57e | 2018-01-05 16:33:30 -0800 | [diff] [blame] | 72 | $(call all-java-files-under, ../../../external/subsampling-scale-image-view/library/src) |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 73 | |
Jon Miranda | 623e57e | 2018-01-05 16:33:30 -0800 | [diff] [blame] | 74 | LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res \ |
| 75 | $(LOCAL_PATH)/../../../external/subsampling-scale-image-view/library/src/main/res |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 76 | |
| 77 | LOCAL_PROGUARD_FLAG_FILES := proguard.flags |
| 78 | LOCAL_PROGUARD_ENABLED := disabled |
| 79 | |
| 80 | LOCAL_AAPT_FLAGS := \ |
| 81 | --auto-add-overlay \ |
Jon Miranda | 623e57e | 2018-01-05 16:33:30 -0800 | [diff] [blame] | 82 | --extra-packages com.davemorrissey.labs.subscaleview |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 83 | |
Jon Miranda | 078ea36 | 2018-01-25 18:09:12 -0800 | [diff] [blame] | 84 | LOCAL_SDK_VERSION := current |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 85 | LOCAL_PACKAGE_NAME := WallpaperPicker2 |
| 86 | |
| 87 | include $(BUILD_PACKAGE) |
| 88 | |
| 89 | # ================================================== |
| 90 | include $(call all-makefiles-under,$(LOCAL_PATH)) |