1// Copyright (C) 2022 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: "zuma_libhwc2_1_srcs", 28 srcs: [ 29 "libmaindisplay/ExynosPrimaryDisplayModule.cpp", 30 "libresource/ExynosMPPModule.cpp", 31 "libresource/ExynosResourceManagerModule.cpp", 32 "libexternaldisplay/ExynosExternalDisplayModule.cpp", 33 "libdisplayinterface/ExynosDisplayDrmInterfaceModule.cpp", 34 "libcolormanager/DisplayColorModule.cpp", 35 "libdevice/ExynosDeviceModule.cpp", 36 "libdevice/HistogramController.cpp", 37 ], 38} 39 40cc_defaults { 41 name: "zuma_libhwc2_1_defaults", 42 srcs: [ 43 ":zuma_libhwc2_1_srcs", 44 ":gs101_for_zuma_zumapro_libhwc2_1_srcs", 45 ":gs201_for_zuma_zumapro_libhwc2_1_srcs", 46 ], 47 cflags: [ 48 "-DDISPLAY_COLOR_LIB=\"libdisplaycolor.so\"", 49 ], 50 51 header_libs: [ 52 "gs201_graphics_histogram_header", 53 ], 54 55 include_dirs: [ 56 "hardware/google/graphics/gs101/include/gs101", 57 "hardware/google/graphics/zuma/include", 58 ], 59 60} 61 62filegroup { 63 name: "zuma_for_zumapro_libhwc2_1_srcs", 64 srcs: [ 65 "libresource/ExynosMPPModule.cpp", 66 "libresource/ExynosResourceManagerModule.cpp", 67 "libexternaldisplay/ExynosExternalDisplayModule.cpp", 68 "libdisplayinterface/ExynosDisplayDrmInterfaceModule.cpp", 69 "libcolormanager/DisplayColorModule.cpp", 70 "libdevice/ExynosDeviceModule.cpp", 71 "libdevice/HistogramController.cpp", 72 ], 73} 74 75cc_library_shared { 76 name: "libexynosdisplay", 77 srcs: [ 78 ":zuma_libhwc2_1_srcs", 79 "//hardware/google/graphics/gs101/libhwc2.1:gs101_for_zuma_zumapro_libhwc2_1_srcs", 80 "//hardware/google/graphics/gs201/libhwc2.1:gs201_for_zuma_zumapro_libhwc2_1_srcs", 81 ], 82 cflags: [ 83 "-DDISPLAY_COLOR_LIB=\"libdisplaycolor.so\"", 84 ], 85 header_libs: [ 86 "//hardware/google/graphics/gs201:gs201_graphics_histogram_header", 87 ], 88 include_dirs: [ 89 "hardware/google/graphics/gs101/include/gs101", 90 "hardware/google/graphics/zuma/include", 91 ] + [ 92 // From original common which will use each soc's own folder. 93 "hardware/google/graphics/zuma/libhwc2.1", 94 "hardware/google/graphics/zuma/libhwc2.1/libmaindisplay", 95 "hardware/google/graphics/zuma/libhwc2.1/libexternaldisplay", 96 "hardware/google/graphics/zuma/libhwc2.1/libvirtualdisplay", 97 "hardware/google/graphics/zuma/libhwc2.1/libresource", 98 "hardware/google/graphics/zuma/libhwc2.1/libcolormanager", 99 "hardware/google/graphics/zuma/libhwc2.1/libdevice", 100 "hardware/google/graphics/zuma/libhwc2.1/libresource", 101 "hardware/google/graphics/zuma/libhwc2.1/libdisplayinterface", 102 "hardware/google/graphics/zuma", 103 ], 104 defaults: [ 105 "libexynosdisplay_common_cc_default", 106 ], 107} 108