• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
29
30LOCAL_PROGUARD_ENABLED := disabled
31
32ifneq (,$(wildcard frameworks/base))
33  LOCAL_PRIVATE_PLATFORM_APIS := true
34else
35  LOCAL_SDK_VERSION := system_current
36endif
37
38LOCAL_PACKAGE_NAME := ThemePicker
39LOCAL_PRIVILEGED_MODULE := true
40LOCAL_PRODUCT_MODULE := true
41LOCAL_OVERRIDES_PACKAGES := WallpaperPicker2
42
43LOCAL_SRC_FILES := $(call all-java-files-under, $(WALLPAPER_PATH)/src) \
44    $(call all-java-files-under, src) \
45    $(call all-java-files-under, src_override)
46
47LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
48
49LOCAL_MANIFEST_FILE := AndroidManifest.xml
50
51include $(BUILD_PACKAGE)
52
53
54# ==================================================
55include $(call all-makefiles-under,$(LOCAL_PATH))
56