1# Copyright (c) 2023 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14import("//build/config/components/hdi/hdi.gni")
15
16hdi("display_composer") {
17  module_name = "display_composer"
18  imports = [ "ohos.hdi.display.composer.v1_0:display_composer" ]
19
20  sources = [
21    "DisplayComposerType.idl",
22    "IDisplayComposer.idl",
23    "IModeCallback.idl",
24    "ISeamlessChangeCallback.idl",
25  ]
26
27  sequenceable_pub_deps = [ "../hdifd_parcelable:libhdifd_parcelable" ]
28
29  language = "cpp"
30  subsystem_name = "hdf"
31  part_name = "drivers_interface_display"
32}
33
34config("libdisplay_composer_hdi_impl_config") {
35  include_dirs = [
36    "../",
37    "../hdifd_parcelable",
38  ]
39}
40
41ohos_shared_library("libdisplay_composer_hdi_impl_1.1") {
42  sources = [ "../v1_1/hdi_impl/display_composer_interface.cpp" ]
43
44  public_configs = [ ":libdisplay_composer_hdi_impl_config" ]
45
46  deps = [
47    ":libdisplay_composer_proxy_1.1",
48    "../hdifd_parcelable:libhdifd_parcelable",
49    "../v1_0:libdisplay_composer_proxy_1.0",
50  ]
51
52  external_deps = [
53    "c_utils:utils",
54    "graphic_surface:buffer_handle",
55    "hdf_core:libhdi",
56    "hdf_core:libpub_utils",
57    "hilog:libhilog",
58    "hitrace:hitrace_meter",
59    "init:libbegetutil",
60    "ipc:ipc_single",
61  ]
62
63  install_images = [ "system" ]
64  subsystem_name = "hdf"
65  part_name = "drivers_interface_display"
66}
67