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 zxing-core-1.7 69 70LOCAL_PROGUARD_FLAG_FILES := proguard.flags 71 72ifneq ($(INCREMENTAL_BUILDS),) 73 LOCAL_PROGUARD_ENABLED := disabled 74 LOCAL_JACK_ENABLED := incremental 75 LOCAL_JACK_FLAGS := --multi-dex native 76endif 77 78include frameworks/base/packages/SettingsLib/common.mk 79include frameworks/base/packages/SettingsLib/search/common.mk 80 81include $(BUILD_PACKAGE) 82 83# ==== prebuilt library ======================== 84include $(CLEAR_VARS) 85 86include $(BUILD_MULTI_PREBUILT) 87 88# Use the following include to make our test apk. 89ifeq (,$(ONE_SHOT_MAKEFILE)) 90include $(call all-makefiles-under,$(LOCAL_PATH)) 91endif 92