• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2019 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#      http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14#
15
16LOCAL_PATH:= $(call my-dir)
17include $(CLEAR_VARS)
18
19LOCAL_SRC_FILES := \
20        $(call all-logtags-files-under, src)
21
22LOCAL_MODULE := carsettings-logtags
23
24include $(BUILD_STATIC_JAVA_LIBRARY)
25
26# Build the Settings APK
27include $(CLEAR_VARS)
28
29LOCAL_PACKAGE_NAME := CarDeveloperOptions
30LOCAL_PRIVATE_PLATFORM_APIS := true
31LOCAL_CERTIFICATE := platform
32LOCAL_SYSTEM_EXT_MODULE := true
33LOCAL_PRIVILEGED_MODULE := true
34LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.car.developeroptions
35LOCAL_MODULE_TAGS := optional
36LOCAL_USE_AAPT2 := true
37
38LOCAL_SRC_FILES := $(call all-java-files-under, src)
39
40LOCAL_STATIC_ANDROID_LIBRARIES := \
41    androidx-constraintlayout_constraintlayout \
42    androidx.slice_slice-builders \
43    androidx.slice_slice-core \
44    androidx.slice_slice-view \
45    androidx.core_core \
46    androidx.appcompat_appcompat \
47    androidx.cardview_cardview \
48    androidx.preference_preference \
49    androidx.recyclerview_recyclerview \
50    com.google.android.material_material \
51    setupcompat \
52    setupdesign
53
54LOCAL_JAVA_LIBRARIES := \
55    telephony-common \
56    android.car.settings \
57    ims-common
58
59LOCAL_STATIC_JAVA_LIBRARIES := \
60    androidx-constraintlayout_constraintlayout-solver \
61    androidx.lifecycle_lifecycle-runtime \
62    androidx.lifecycle_lifecycle-extensions \
63    guava \
64    jsr305 \
65    carsettings-contextual-card-protos-lite \
66    carsettings-log-bridge-protos-lite \
67    carsettings-logtags \
68    statslog-settings \
69    zxing-core-1.7
70
71LOCAL_PROGUARD_FLAG_FILES := proguard.flags
72
73ifneq ($(INCREMENTAL_BUILDS),)
74    LOCAL_PROGUARD_ENABLED := disabled
75    LOCAL_JACK_ENABLED := incremental
76    LOCAL_JACK_FLAGS := --multi-dex native
77endif
78
79include frameworks/base/packages/SettingsLib/common.mk
80include frameworks/base/packages/SettingsLib/search/common.mk
81
82include $(BUILD_PACKAGE)
83
84# ====  prebuilt library  ========================
85include $(CLEAR_VARS)
86
87include $(BUILD_MULTI_PREBUILT)
88
89# Use the following include to make our test apk.
90ifeq (,$(ONE_SHOT_MAKEFILE))
91include $(call all-makefiles-under,$(LOCAL_PATH))
92endif
93