• 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_PRODUCT_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    ims-common
57
58LOCAL_STATIC_JAVA_LIBRARIES := \
59    androidx-constraintlayout_constraintlayout-solver \
60    androidx.lifecycle_lifecycle-runtime \
61    androidx.lifecycle_lifecycle-extensions \
62    guava \
63    jsr305 \
64    carsettings-contextual-card-protos-lite \
65    carsettings-log-bridge-protos-lite \
66    carsettings-logtags \
67    zxing-core-1.7
68
69LOCAL_PROGUARD_FLAG_FILES := proguard.flags
70
71ifneq ($(INCREMENTAL_BUILDS),)
72    LOCAL_PROGUARD_ENABLED := disabled
73    LOCAL_JACK_ENABLED := incremental
74    LOCAL_JACK_FLAGS := --multi-dex native
75endif
76
77include frameworks/base/packages/SettingsLib/common.mk
78include frameworks/base/packages/SettingsLib/search/common.mk
79
80include $(BUILD_PACKAGE)
81
82# ====  prebuilt library  ========================
83include $(CLEAR_VARS)
84
85include $(BUILD_MULTI_PREBUILT)
86
87# Use the following include to make our test apk.
88ifeq (,$(ONE_SHOT_MAKEFILE))
89include $(call all-makefiles-under,$(LOCAL_PATH))
90endif
91