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
16# Enable the displays UI on qEmu and add cluster display as default.
17
18# Use the config.ini with the cluster display declared.
19PRODUCT_COPY_FILES += \
20    device/generic/car/emulator/multi-display-dynamic/config.ini:config.ini
21# Enable the displays UI in qemu.
22PRODUCT_SYSTEM_PROPERTIES += \
23    ro.emulator.car.multidisplay=true
24# Must be before the emulator's vendor.mk.
25PRODUCT_COPY_FILES += \
26    device/generic/car/emulator/multi-display-dynamic/display_settings.xml:$(TARGET_COPY_OUT_VENDOR)/etc/display_settings.xml
27# Keep the original audio configuration from the MD emulator.
28PRODUCT_COPY_FILES += \
29    device/generic/car/emulator/multi-display/car_audio_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/car_audio_configuration.xml
30
31# support packages for multi-display
32$(call inherit-product, device/generic/goldfish/product/multidisplay.mk)
33PRODUCT_PACKAGES += \
34    MultiDisplaySecondaryHomeTestLauncher \
35    MultiDisplayTest \
36    SecondaryHomeApp \
37    MultiDisplayProvider \
38    CarServiceMultiDisplayOverlayEmulator
39
40PRODUCT_PACKAGES += ClusterHomeSample ClusterOsDouble ClusterHomeSampleOverlay ClusterOsDoubleEmulatorVirtualDisplayOverlay
41
42# Selects the MultiDisplaySecondaryHomeTestLauncher as secondaryHome
43PRODUCT_PACKAGE_OVERLAYS += \
44    device/generic/car/emulator/multi-display-dynamic/overlay
45