OSDN Git Service

Merge "Revert "Revert "Add LOCAL_RESOURCE_DIR in Settings makefile""" am: b67697cf38
[android-x86/packages-apps-Settings.git] / Android.mk
1 LOCAL_PATH:= $(call my-dir)
2 include $(CLEAR_VARS)
3
4 LOCAL_SRC_FILES := \
5         $(call all-logtags-files-under, src)
6
7 LOCAL_MODULE := settings-logtags
8
9 include $(BUILD_STATIC_JAVA_LIBRARY)
10
11 # Build the Settings APK
12 include $(CLEAR_VARS)
13
14 LOCAL_PACKAGE_NAME := Settings
15 LOCAL_PRIVATE_PLATFORM_APIS := true
16 LOCAL_CERTIFICATE := platform
17 LOCAL_PRODUCT_MODULE := true
18 LOCAL_PRIVILEGED_MODULE := true
19 LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.settings
20 LOCAL_MODULE_TAGS := optional
21 LOCAL_USE_AAPT2 := true
22
23 LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
24
25 LOCAL_SRC_FILES := $(call all-java-files-under, src)
26
27 LOCAL_STATIC_ANDROID_LIBRARIES := \
28     androidx.slice_slice-builders \
29     androidx.slice_slice-core \
30     androidx.slice_slice-view \
31     androidx.core_core \
32     androidx.legacy_legacy-support-v4 \
33     androidx.legacy_legacy-support-v13 \
34     androidx.appcompat_appcompat \
35     androidx.cardview_cardview \
36     androidx.preference_preference \
37     androidx.recyclerview_recyclerview \
38     androidx.legacy_legacy-preference-v14 \
39
40 LOCAL_JAVA_LIBRARIES := \
41     telephony-common \
42     ims-common
43
44 LOCAL_STATIC_JAVA_LIBRARIES := \
45     androidx.lifecycle_lifecycle-runtime \
46     androidx.lifecycle_lifecycle-extensions \
47     guava \
48     jsr305 \
49     settings-logtags \
50
51 LOCAL_PROGUARD_FLAG_FILES := proguard.flags
52
53 ifneq ($(INCREMENTAL_BUILDS),)
54     LOCAL_PROGUARD_ENABLED := disabled
55     LOCAL_JACK_ENABLED := incremental
56     LOCAL_JACK_FLAGS := --multi-dex native
57 endif
58
59 include frameworks/opt/setupwizard/library/common-gingerbread.mk
60 include frameworks/base/packages/SettingsLib/common.mk
61
62 include $(BUILD_PACKAGE)
63
64 # Use the following include to make our test apk.
65 ifeq (,$(ONE_SHOT_MAKEFILE))
66 include $(call all-makefiles-under,$(LOCAL_PATH))
67 endif