xref: /drivers/interface/display/v1_0/BUILD.gn (revision c5e268c6)
1c5e268c6Sopenharmony_ci# Copyright (c) 2022 Huawei Device Co., Ltd.
2c5e268c6Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3c5e268c6Sopenharmony_ci# you may not use this file except in compliance with the License.
4c5e268c6Sopenharmony_ci# You may obtain a copy of the License at
5c5e268c6Sopenharmony_ci#
6c5e268c6Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0
7c5e268c6Sopenharmony_ci#
8c5e268c6Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9c5e268c6Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10c5e268c6Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11c5e268c6Sopenharmony_ci# See the License for the specific language governing permissions and
12c5e268c6Sopenharmony_ci# limitations under the License.
13c5e268c6Sopenharmony_ci
14c5e268c6Sopenharmony_ciif (defined(ohos_lite)) {
15c5e268c6Sopenharmony_ci  group("display_device_client") {
16c5e268c6Sopenharmony_ci  }
17c5e268c6Sopenharmony_ci} else {
18c5e268c6Sopenharmony_ci  import("//build/ohos.gni")
19c5e268c6Sopenharmony_ci  import("//build/ohos/native_stub/native_stub.gni")
20c5e268c6Sopenharmony_ci
21c5e268c6Sopenharmony_ci  #
22c5e268c6Sopenharmony_ci  # exported include directories
23c5e268c6Sopenharmony_ci  #
24c5e268c6Sopenharmony_ci  config("libdisplay_exported_config") {
25c5e268c6Sopenharmony_ci    visibility = [ ":*" ]
26c5e268c6Sopenharmony_ci    include_dirs = []
27c5e268c6Sopenharmony_ci  }
28c5e268c6Sopenharmony_ci
29c5e268c6Sopenharmony_ci  #
30c5e268c6Sopenharmony_ci  # stub library for libdisplay_gralloc
31c5e268c6Sopenharmony_ci  #
32c5e268c6Sopenharmony_ci  ohos_native_stub_library("libdisplay_gralloc") {
33c5e268c6Sopenharmony_ci    public_configs = [ ":libdisplay_exported_config" ]
34c5e268c6Sopenharmony_ci    stub_description_file = "./stub/libdisplay_gralloc.stub.json"
35c5e268c6Sopenharmony_ci  }
36c5e268c6Sopenharmony_ci
37c5e268c6Sopenharmony_ci  #
38c5e268c6Sopenharmony_ci  # stub library for libdisplay_device
39c5e268c6Sopenharmony_ci  #
40c5e268c6Sopenharmony_ci  ohos_native_stub_library("libdisplay_device") {
41c5e268c6Sopenharmony_ci    public_configs = [ ":libdisplay_exported_config" ]
42c5e268c6Sopenharmony_ci    stub_description_file = "./stub/libdisplay_device.stub.json"
43c5e268c6Sopenharmony_ci  }
44c5e268c6Sopenharmony_ci
45c5e268c6Sopenharmony_ci  #
46c5e268c6Sopenharmony_ci  # stub library for libdisplay_gfx
47c5e268c6Sopenharmony_ci  #
48c5e268c6Sopenharmony_ci  ohos_native_stub_library("libdisplay_gfx") {
49c5e268c6Sopenharmony_ci    public_configs = [ ":libdisplay_exported_config" ]
50c5e268c6Sopenharmony_ci    stub_description_file = "./stub/libdisplay_gfx.stub.json"
51c5e268c6Sopenharmony_ci  }
52c5e268c6Sopenharmony_ci
53c5e268c6Sopenharmony_ci  #
54c5e268c6Sopenharmony_ci  # stub library for libdisplay_layer
55c5e268c6Sopenharmony_ci  #
56c5e268c6Sopenharmony_ci  ohos_native_stub_library("libdisplay_layer") {
57c5e268c6Sopenharmony_ci    public_configs = [ ":libdisplay_exported_config" ]
58c5e268c6Sopenharmony_ci    stub_description_file = "./stub/libdisplay_layer.stub.json"
59c5e268c6Sopenharmony_ci  }
60c5e268c6Sopenharmony_ci
61c5e268c6Sopenharmony_ci  group("display_device_client") {
62c5e268c6Sopenharmony_ci    deps = [
63c5e268c6Sopenharmony_ci      ":libdisplay_device",
64c5e268c6Sopenharmony_ci      ":libdisplay_layer",
65c5e268c6Sopenharmony_ci    ]
66c5e268c6Sopenharmony_ci    public_configs = [ ":libdisplay_exported_config" ]
67c5e268c6Sopenharmony_ci  }
68c5e268c6Sopenharmony_ci}
69