Santiago Etchebehere | 0c69691 | 2018-11-29 18:03:48 -0800 | [diff] [blame] | 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 | |
| 18 | LOCAL_PATH := $(call my-dir) |
| 19 | WALLPAPER_PATH := ../WallpaperPicker2 |
| 20 | |
| 21 | # |
| 22 | # Build rule for ThemePicker app. |
| 23 | # |
| 24 | include $(CLEAR_VARS) |
| 25 | LOCAL_USE_AAPT2 := true |
| 26 | LOCAL_MODULE_TAGS := optional |
| 27 | |
| 28 | LOCAL_STATIC_ANDROID_LIBRARIES := WallpaperPicker2CommonDepsLib |
Winson Chung | 229ab4a | 2020-03-16 21:07:10 +0000 | [diff] [blame] | 29 | LOCAL_STATIC_JAVA_LIBRARIES := styleprotosnano SystemUI-statsd SystemUISharedLib |
Santiago Etchebehere | 0c69691 | 2018-11-29 18:03:48 -0800 | [diff] [blame] | 30 | LOCAL_PROGUARD_ENABLED := disabled |
| 31 | |
Santiago Etchebehere | 0c69691 | 2018-11-29 18:03:48 -0800 | [diff] [blame] | 32 | LOCAL_PACKAGE_NAME := ThemePicker |
| 33 | LOCAL_PRIVILEGED_MODULE := true |
Jeongik Cha | 36ff8dc | 2019-11-25 14:41:39 +0900 | [diff] [blame] | 34 | LOCAL_SYSTEM_EXT_MODULE := true |
Santiago Etchebehere | 0c69691 | 2018-11-29 18:03:48 -0800 | [diff] [blame] | 35 | LOCAL_OVERRIDES_PACKAGES := WallpaperPicker2 |
| 36 | |
Santiago Etchebehere | 81b6b64 | 2019-11-08 14:24:35 -0800 | [diff] [blame] | 37 | ifneq (,$(wildcard frameworks/base)) |
| 38 | LOCAL_PRIVATE_PLATFORM_APIS := true |
| 39 | else |
| 40 | LOCAL_SDK_VERSION := system_current |
| 41 | LOCAL_STATIC_JAVA_LIBRARIES += libSharedWallpaper |
| 42 | endif |
| 43 | |
Santiago Etchebehere | 0c69691 | 2018-11-29 18:03:48 -0800 | [diff] [blame] | 44 | LOCAL_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 | |
Hyunyoung Song | 69f2efb | 2019-08-08 01:28:06 -0700 | [diff] [blame] | 48 | LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res |
Santiago Etchebehere | 0c69691 | 2018-11-29 18:03:48 -0800 | [diff] [blame] | 49 | |
| 50 | LOCAL_MANIFEST_FILE := AndroidManifest.xml |
| 51 | |
| 52 | include $(BUILD_PACKAGE) |
| 53 | |
| 54 | |
| 55 | # ================================================== |
Hyunyoung Song | 06f0939 | 2019-02-01 17:46:35 -0800 | [diff] [blame] | 56 | include $(call all-makefiles-under,$(LOCAL_PATH)) |