1// Copyright (C) 2019 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: "gs101_libhwc2_1_srcs",
21    srcs: [
22        "libcolormanager/ColorManager.cpp",
23        "libcolormanager/DisplayColorModule.cpp",
24        "libdevice/ExynosDeviceModule.cpp",
25        "libdevice/HistogramController.cpp",
26        "libmaindisplay/ExynosPrimaryDisplayModule.cpp",
27        "libresource/ExynosMPPModule.cpp",
28        "libresource/ExynosResourceManagerModule.cpp",
29        "libexternaldisplay/ExynosExternalDisplayModule.cpp",
30        "libvirtualdisplay/ExynosVirtualDisplayModule.cpp",
31        "libdisplayinterface/ExynosDisplayDrmInterfaceModule.cpp",
32    ],
33}
34
35filegroup {
36    name: "gs101_for_gs201_libhwc2_1_srcs",
37    srcs: [
38        "libcolormanager/ColorManager.cpp",
39        "libcolormanager/DisplayColorModule.cpp",
40        "libdevice/ExynosDeviceModule.cpp",
41        "libmaindisplay/ExynosPrimaryDisplayModule.cpp",
42        "libresource/ExynosMPPModule.cpp",
43        "libresource/ExynosResourceManagerModule.cpp",
44        "libexternaldisplay/ExynosExternalDisplayModule.cpp",
45        "libvirtualdisplay/ExynosVirtualDisplayModule.cpp",
46        "libdisplayinterface/ExynosDisplayDrmInterfaceModule.cpp",
47    ],
48}
49
50filegroup {
51    name: "gs101_for_zuma_zumapro_libhwc2_1_srcs",
52    srcs: [
53        "libcolormanager/ColorManager.cpp",
54        "libdevice/ExynosDeviceModule.cpp",
55        "libdisplayinterface/ExynosDisplayDrmInterfaceModule.cpp",
56        "libexternaldisplay/ExynosExternalDisplayModule.cpp",
57        "libmaindisplay/ExynosPrimaryDisplayModule.cpp",
58        "libresource/ExynosMPPModule.cpp",
59        "libresource/ExynosResourceManagerModule.cpp",
60        "libvirtualdisplay/ExynosVirtualDisplayModule.cpp",
61    ],
62}
63
64cc_library_shared {
65    name: "libexynosdisplay",
66    srcs: [
67        ":gs101_libhwc2_1_srcs",
68    ],
69    cflags: [
70        "-DDISPLAY_COLOR_LIB=\"libdisplaycolor.so\"",
71    ],
72    include_dirs: ["hardware/google/graphics/gs101/include"] + [
73        // From original common which will use each soc's own folder.
74        "hardware/google/graphics/gs101/libhwc2.1",
75        "hardware/google/graphics/gs101/libhwc2.1/libmaindisplay",
76        "hardware/google/graphics/gs101/libhwc2.1/libexternaldisplay",
77        "hardware/google/graphics/gs101/libhwc2.1/libvirtualdisplay",
78        "hardware/google/graphics/gs101/libhwc2.1/libresource",
79        "hardware/google/graphics/gs101/libhwc2.1/libcolormanager",
80        "hardware/google/graphics/gs101/libhwc2.1/libdevice",
81        "hardware/google/graphics/gs101/libhwc2.1/libresource",
82        "hardware/google/graphics/gs101/libhwc2.1/libdisplayinterface",
83        "hardware/google/graphics/gs101",
84    ],
85    defaults: [
86        "libexynosdisplay_common_cc_default",
87    ],
88}
89