1LOCAL_PATH:= $(call my-dir)
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE := SystemUI-proto
6
7LOCAL_SRC_FILES := $(call all-proto-files-under,src)
8
9LOCAL_PROTOC_OPTIMIZE_TYPE := nano
10LOCAL_PROTO_JAVA_OUTPUT_PARAMS := optional_field_style=accessors
11
12include $(BUILD_STATIC_JAVA_LIBRARY)
13
14include $(CLEAR_VARS)
15
16LOCAL_MODULE := SystemUI-tags
17
18LOCAL_SRC_FILES := src/com/android/systemui/EventLogTags.logtags
19
20include $(BUILD_STATIC_JAVA_LIBRARY)
21
22# ------------------
23
24include $(CLEAR_VARS)
25
26LOCAL_USE_AAPT2 := true
27
28LOCAL_MODULE_TAGS := optional
29
30RELATIVE_FINGERPRINT_PATH := ../../core/java/android/hardware/fingerprint
31
32LOCAL_SRC_FILES := \
33    $(call all-java-files-under, src) \
34    $(call all-Iaidl-files-under, src) \
35    $(call all-Iaidl-files-under, $(RELATIVE_FINGERPRINT_PATH))
36
37LOCAL_STATIC_ANDROID_LIBRARIES := \
38    SystemUIPluginLib \
39    SystemUISharedLib \
40    android-support-car \
41    android-support-v4 \
42    android-support-v7-recyclerview \
43    android-support-v7-preference \
44    android-support-v7-appcompat \
45    android-support-v7-mediarouter \
46    android-support-v7-palette \
47    android-support-v14-preference \
48    android-support-v17-leanback \
49    android-slices-core \
50    android-slices-view \
51    android-slices-builders \
52    android-arch-core-runtime \
53    android-arch-lifecycle-extensions \
54
55LOCAL_STATIC_JAVA_LIBRARIES := \
56    SystemUI-tags \
57    SystemUI-proto
58
59LOCAL_JAVA_LIBRARIES := telephony-common \
60    android.car
61
62LOCAL_PACKAGE_NAME := SystemUI
63LOCAL_PRIVATE_PLATFORM_APIS := true
64LOCAL_CERTIFICATE := platform
65LOCAL_PRIVILEGED_MODULE := true
66
67LOCAL_PROGUARD_FLAG_FILES := proguard.flags
68LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res-keyguard $(LOCAL_PATH)/res
69
70ifneq ($(INCREMENTAL_BUILDS),)
71    LOCAL_PROGUARD_ENABLED := disabled
72    LOCAL_JACK_ENABLED := incremental
73    LOCAL_DX_FLAGS := --multi-dex
74    LOCAL_JACK_FLAGS := --multi-dex native
75endif
76
77include frameworks/base/packages/SettingsLib/common.mk
78
79LOCAL_AAPT_FLAGS := --extra-packages com.android.keyguard
80
81include $(BUILD_PACKAGE)
82
83include $(call all-makefiles-under,$(LOCAL_PATH))
84