• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-2022 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/ohos.gni")
15
16## Build snapshot {{{
17config("snapshot_config") {
18  visibility = [ ":*" ]
19  include_dirs = [ "include" ]
20}
21
22ohos_executable("snapshot_display") {
23  install_enable = true
24  sources = [ "src/snapshot_display.cpp" ]
25
26  configs = [
27    ":snapshot_config",
28    "//foundation/window/window_manager/resources/config/build:coverage_flags",
29  ]
30
31  deps = [
32    ":libsnapshot_util",
33    "../dm:libdm",
34  ]
35
36  external_deps = [
37    "c_utils:utils",
38    "multimedia_image_framework:image_native",
39  ]
40
41  part_name = "window_manager"
42  subsystem_name = "window"
43}
44
45ohos_shared_library("libsnapshot_util") {
46  sources = [ "src/snapshot_utils.cpp" ]
47
48  configs = [
49    ":snapshot_config",
50    "//foundation/window/window_manager/resources/config/build:coverage_flags",
51  ]
52
53  deps = [
54    "//foundation/window/window_manager/dm:libdm",
55    "//third_party/libjpeg-turbo:turbojpeg_static",
56  ]
57
58  external_deps = [
59    "c_utils:utils",
60    "hitrace_native:hitrace_meter",
61    "multimedia_image_framework:image_native",
62  ]
63
64  part_name = "window_manager"
65  subsystem_name = "window"
66}
67
68## Build snapshot }}}
69
70group("test") {
71  testonly = true
72  deps = [ "test:test" ]
73}
74