1# 2# Copyright (C) 2022 The Android Open Source Project 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15 16PRODUCT_PACKAGES += CarEvsServiceOverlay 17 18ifeq ($(ENABLE_MOCK_EVSHAL), true) 19CUSTOMIZE_EVS_SERVICE_PARAMETER := true 20PRODUCT_PACKAGES += \ 21 android.hardware.automotive.evs-aidl-default-service 22 23# TODO(b/277389752): Below line should be removed when AAOS baseline is fully supported. 24PRODUCT_PACKAGES += cardisplayproxyd 25 26# EVS HAL implementation for the emulators requires AIDL version of the automotive display 27# service implementation. 28USE_AIDL_DISPLAY_SERVICE := true 29 30PRODUCT_COPY_FILES += \ 31 device/generic/car/emulator/evs/init.evs.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.evs.rc 32endif 33 34ifeq ($(ENABLE_SAMPLE_EVS_APP), true) 35PRODUCT_COPY_FILES += \ 36 device/generic/car/emulator/evs/evs_app_config.json:$(TARGET_COPY_OUT_VENDOR)/etc/automotive/evs/config_override.json 37ifneq ($(ENABLE_EVS_SAMPLE), true) 38# We need to add evs_app package and its selinux policy if ENABLE_EVS_SAMPLE is not set as true. 39PRODUCT_PACKAGES += evs_app 40$(call inherit-product, packages/services/Car/cpp/evs/apps/sepolicy/evsapp.mk) 41endif # ENABLE_EVS_SAMPLE 42endif # ENABLE_SAMPLE_EVS_APP 43