1// Copyright (C) 2023 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
15soong_namespace {
16    imports: [
17        "hardware/google/gchips",
18        "hardware/google/graphics/common",
19    ],
20}
21
22package {
23    default_applicable_licenses: ["Android-Apache-2.0"],
24}
25
26filegroup {
27    name: "zumapro_libhwc2_1_srcs",
28    srcs: [
29        "libmaindisplay/ExynosPrimaryDisplayModule.cpp",
30    ],
31}
32
33cc_library_shared {
34    name: "libexynosdisplay",
35    srcs: [
36        ":zumapro_libhwc2_1_srcs",
37        "//hardware/google/graphics/zuma/libhwc2.1:zuma_for_zumapro_libhwc2_1_srcs",
38        "//hardware/google/graphics/gs101/libhwc2.1:gs101_for_zuma_zumapro_libhwc2_1_srcs",
39        "//hardware/google/graphics/gs201/libhwc2.1:gs201_for_zuma_zumapro_libhwc2_1_srcs",
40    ],
41    cflags: [
42        "-DDISPLAY_COLOR_LIB=\"libdisplaycolor.so\"",
43    ],
44    header_libs: [
45        "//hardware/google/graphics/gs201:gs201_graphics_histogram_header",
46    ],
47    include_dirs: [
48        "hardware/google/graphics/gs101/include/gs101",
49        "hardware/google/graphics/zumapro/include",
50    ] + [
51        // From original common which will use each soc's own folder.
52        "hardware/google/graphics/zumapro/libhwc2.1",
53        "hardware/google/graphics/zumapro/libhwc2.1/libmaindisplay",
54        "hardware/google/graphics/zumapro/libhwc2.1/libexternaldisplay",
55        "hardware/google/graphics/zumapro/libhwc2.1/libvirtualdisplay",
56        "hardware/google/graphics/zumapro/libhwc2.1/libresource",
57        "hardware/google/graphics/zumapro/libhwc2.1/libcolormanager",
58        "hardware/google/graphics/zumapro/libhwc2.1/libdevice",
59        "hardware/google/graphics/zumapro/libhwc2.1/libresource",
60        "hardware/google/graphics/zumapro/libhwc2.1/libdisplayinterface",
61        "hardware/google/graphics/zumapro",
62    ],
63    defaults: [
64        "libexynosdisplay_common_cc_default",
65    ],
66}
67