1#
2# Copyright (C) 2024 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
16# AOSP Car UI Distant Display Cuttlefish Target
17TARGET_BOARD_INFO_FILE := device/google/cuttlefish/shared/auto_dd/android-info.txt
18
19# Exclude AAE Car System UI
20DO_NOT_INCLUDE_AAE_CAR_SYSTEM_UI := true
21
22PRODUCT_COPY_FILES += \
23    device/google/cuttlefish/shared/auto_dd/display_settings.xml:$(TARGET_COPY_OUT_VENDOR)/etc/display_settings.xml
24
25PRODUCT_PACKAGE_OVERLAYS += \
26    device/google/cuttlefish/shared/auto_dd/overlay
27
28EMULATOR_DYNAMIC_MULTIDISPLAY_CONFIG := false
29BUILD_EMULATOR_CLUSTER_DISPLAY := true
30TARGET_NO_TELEPHONY := true
31
32PRODUCT_SYSTEM_PROPERTIES += \
33    ro.emulator.car.distantdisplay=true
34
35$(call inherit-product, packages/services/Car/car_product/distant_display/apps/car_ui_distant_display_apps.mk)
36$(call inherit-product, packages/services/Car/car_product/distant_display/rro/distant_display_rro.mk)
37
38# Enable per-display power management
39PRODUCT_COPY_FILES += \
40    device/google/cuttlefish/shared/auto_dd/display_layout_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/displayconfig/display_layout_configuration.xml
41
42# Disable shared system image checking
43PRODUCT_ENFORCE_ARTIFACT_PATH_REQUIREMENTS := false
44
45$(call inherit-product, device/google/cuttlefish/vsoc_x86_64_only/auto/aosp_cf.mk)
46
47PRODUCT_NAME := aosp_cf_x86_64_auto_dd
48PRODUCT_MODEL := Cuttlefish x86_64 auto 64-bit only distant displays
49
50# Include the`launch_cvd --config auto_dd` option.
51$(call soong_config_append,cvd,launch_configs,cvd_config_auto_dd.json)