blob: 987c875e8db22145e9eb3cf414c0254b82d9acff [file] [log] [blame]
Santiago Etchebehere0c696912018-11-29 18:03:48 -08001#
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
Winson Chung229ab4a2020-03-16 21:07:10 +000029LOCAL_STATIC_JAVA_LIBRARIES := styleprotosnano SystemUI-statsd SystemUISharedLib
Santiago Etchebehere0c696912018-11-29 18:03:48 -080030LOCAL_PROGUARD_ENABLED := disabled
31
Santiago Etchebehere0c696912018-11-29 18:03:48 -080032LOCAL_PACKAGE_NAME := ThemePicker
33LOCAL_PRIVILEGED_MODULE := true
Jeongik Cha36ff8dc2019-11-25 14:41:39 +090034LOCAL_SYSTEM_EXT_MODULE := true
Santiago Etchebehere0c696912018-11-29 18:03:48 -080035LOCAL_OVERRIDES_PACKAGES := WallpaperPicker2
36
Santiago Etchebehere81b6b642019-11-08 14:24:35 -080037ifneq (,$(wildcard frameworks/base))
38 LOCAL_PRIVATE_PLATFORM_APIS := true
39else
40 LOCAL_SDK_VERSION := system_current
41 LOCAL_STATIC_JAVA_LIBRARIES += libSharedWallpaper
42endif
43
Santiago Etchebehere0c696912018-11-29 18:03:48 -080044LOCAL_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 Song69f2efb2019-08-08 01:28:06 -070048LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
Santiago Etchebehere0c696912018-11-29 18:03:48 -080049
50LOCAL_MANIFEST_FILE := AndroidManifest.xml
51
52include $(BUILD_PACKAGE)
53
54
55# ==================================================
Hyunyoung Song06f09392019-02-01 17:46:35 -080056include $(call all-makefiles-under,$(LOCAL_PATH))