• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
17LOCAL_PATH := $(call my-dir)
18
19#
20# Prebuilt Java Libraries
21#
22include $(CLEAR_VARS)
23LOCAL_MODULE := libStyleProtos
24LOCAL_MODULE_TAGS := optional
25LOCAL_MODULE_CLASS := JAVA_LIBRARIES
26LOCAL_SRC_FILES := libs/style_protos.jar
27LOCAL_UNINSTALLABLE_MODULE := true
28LOCAL_SDK_VERSION := current
29include $(BUILD_PREBUILT)
30
31include $(CLEAR_VARS)
32LOCAL_MODULE_CLASS := JAVA_LIBRARIES
33LOCAL_MODULE := wallpaper2-glide-target
34LOCAL_SDK_VERSION := current
35LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/glide/SNAPSHOT/glide-SNAPSHOT$(COMMON_JAVA_PACKAGE_SUFFIX)
36LOCAL_UNINSTALLABLE_MODULE := true
37include $(BUILD_PREBUILT)
38
39include $(CLEAR_VARS)
40LOCAL_MODULE_CLASS := JAVA_LIBRARIES
41LOCAL_MODULE := wallpaper2-disklrucache-target
42LOCAL_SDK_VERSION := current
43LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/disklrucache/SNAPSHOT/disklrucache-SNAPSHOT$(COMMON_JAVA_PACKAGE_SUFFIX)
44LOCAL_UNINSTALLABLE_MODULE := true
45include $(BUILD_PREBUILT)
46
47include $(CLEAR_VARS)
48LOCAL_MODULE_CLASS := JAVA_LIBRARIES
49LOCAL_MODULE := wallpaper2-gifdecoder-target
50LOCAL_SDK_VERSION := current
51LOCAL_SRC_FILES := ../../../prebuilts/maven_repo/bumptech/com/github/bumptech/glide/gifdecoder/SNAPSHOT/gifdecoder-SNAPSHOT$(COMMON_JAVA_PACKAGE_SUFFIX)
52LOCAL_UNINSTALLABLE_MODULE := true
53include $(BUILD_PREBUILT)
54
55include $(CLEAR_VARS)
56LOCAL_USE_AAPT2 := true
57LOCAL_AAPT2_ONLY := true
58LOCAL_MODULE_TAGS := optional
59
60LOCAL_STATIC_ANDROID_LIBRARIES := android-support-exifinterface
61LOCAL_SRC_FILES := $(call all-java-files-under, ../../../external/subsampling-scale-image-view/library/src)
62LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/../../../external/subsampling-scale-image-view/library/src/main/res
63
64LOCAL_PROGUARD_ENABLED := disabled
65
66LOCAL_SDK_VERSION := current
67LOCAL_MIN_SDK_VERSION := 21
68LOCAL_MODULE := wallpaper-subsampling-scale-image-view
69LOCAL_MANIFEST_FILE := ../../../external/subsampling-scale-image-view/library/src/main/AndroidManifest.xml
70
71include $(BUILD_STATIC_JAVA_LIBRARY)
72
73
74#
75# Build rule for WallpaperPicker2 dependencies lib.
76#
77include $(CLEAR_VARS)
78LOCAL_USE_AAPT2 := true
79LOCAL_MODULE_TAGS := optional
80
81LOCAL_STATIC_ANDROID_LIBRARIES := \
82    androidx.appcompat_appcompat \
83    androidx.cardview_cardview \
84    androidx.recyclerview_recyclerview \
85    androidx-constraintlayout_constraintlayout \
86    com.google.android.material_material \
87    androidx.exifinterface_exifinterface \
88    wallpaper-subsampling-scale-image-view
89
90LOCAL_STATIC_JAVA_LIBRARIES := \
91    wallpaper2-glide-target \
92    wallpaper2-disklrucache-target \
93    wallpaper2-gifdecoder-target \
94    volley \
95    libbackup
96
97LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
98
99LOCAL_PROGUARD_ENABLED := disabled
100LOCAL_MANIFEST_FILE := AndroidManifest.xml
101
102ifneq (,$(wildcard frameworks/base))
103  LOCAL_STATIC_JAVA_LIBRARIES += SystemUISharedLib styleprotosnano
104  LOCAL_PRIVATE_PLATFORM_APIS := true
105else
106  LOCAL_STATIC_JAVA_LIBRARIES += libSharedSystemUI libStyleProtos
107  LOCAL_SDK_VERSION := current
108endif
109
110LOCAL_MODULE := WallpaperPicker2CommonDepsLib
111LOCAL_PRIVILEGED_MODULE := true
112
113include $(BUILD_STATIC_JAVA_LIBRARY)
114
115#
116# Build app code.
117#
118include $(CLEAR_VARS)
119
120LOCAL_MODULE_TAGS := optional
121
122LOCAL_USE_AAPT2 := true
123
124LOCAL_STATIC_ANDROID_LIBRARIES := WallpaperPicker2CommonDepsLib
125
126LOCAL_SRC_FILES := $(call all-java-files-under, src) \
127    $(call all-java-files-under, src_override)
128
129LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
130
131LOCAL_PROGUARD_FLAG_FILES := proguard.flags
132LOCAL_PROGUARD_ENABLED := disabled
133
134ifneq (,$(wildcard frameworks/base))
135  LOCAL_PRIVATE_PLATFORM_APIS := true
136else
137  LOCAL_SDK_VERSION := system_current
138endif
139LOCAL_PACKAGE_NAME := WallpaperPicker2
140LOCAL_JETIFIER_ENABLED := true
141
142include $(BUILD_PACKAGE)
143