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