1# 2# Copyright (C) 2018 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 18LOCAL_PATH := $(call my-dir) 19WALLPAPER_PATH := ../WallpaperPicker2 20 21# 22# Build rule for ThemePicker app. 23# 24include $(CLEAR_VARS) 25LOCAL_USE_AAPT2 := true 26LOCAL_MODULE_TAGS := optional 27 28LOCAL_STATIC_ANDROID_LIBRARIES := WallpaperPicker2CommonDepsLib 29LOCAL_STATIC_JAVA_LIBRARIES := styleprotosnano 30LOCAL_PROGUARD_ENABLED := disabled 31 32LOCAL_PACKAGE_NAME := ThemePicker 33LOCAL_PRIVILEGED_MODULE := true 34LOCAL_SYSTEM_EXT_MODULE := true 35LOCAL_OVERRIDES_PACKAGES := WallpaperPicker2 36 37ifneq (,$(wildcard frameworks/base)) 38 LOCAL_PRIVATE_PLATFORM_APIS := true 39else 40 LOCAL_SDK_VERSION := system_current 41 LOCAL_STATIC_JAVA_LIBRARIES += libSharedWallpaper 42endif 43 44LOCAL_SRC_FILES := $(call all-java-files-under, $(WALLPAPER_PATH)/src) \ 45 $(call all-java-files-under, src) \ 46 $(call all-java-files-under, src_override) 47 48LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res 49 50LOCAL_MANIFEST_FILE := AndroidManifest.xml 51 52include $(BUILD_PACKAGE) 53 54 55# ================================================== 56include $(call all-makefiles-under,$(LOCAL_PATH)) 57