• 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  branch_protector_ret = "pac_ret"
24  sanitize = {
25    cfi = true
26    cfi_cross_dso = true
27    cfi_vcall_icall_only = true
28    debug = false
29  }
30  install_enable = true
31  sources = [ "src/snapshot_display.cpp" ]
32
33  configs = [
34    ":snapshot_config",
35    "../resources/config/build:coverage_flags",
36  ]
37
38  deps = [
39    ":libsnapshot_util",
40    "../dm:libdm",
41  ]
42
43  external_deps = [
44    "c_utils:utils",
45    "image_framework:image_native",
46    "init:libbegetutil",
47    "ipc:ipc_single",
48  ]
49
50  part_name = "window_manager"
51  subsystem_name = "window"
52}
53
54ohos_shared_library("libsnapshot_util") {
55  branch_protector_ret = "pac_ret"
56  sanitize = {
57    cfi = true
58    cfi_cross_dso = true
59    cfi_vcall_icall_only = true
60    debug = false
61  }
62  sources = [ "src/snapshot_utils.cpp" ]
63
64  configs = [
65    ":snapshot_config",
66    "../resources/config/build:coverage_flags",
67  ]
68
69  deps = [ "../dm:libdm" ]
70
71  external_deps = [
72    "c_utils:utils",
73    "hitrace:hitrace_meter",
74    "image_framework:image_native",
75    "ipc:ipc_single",
76    "libjpeg-turbo:turbojpeg",
77  ]
78
79  part_name = "window_manager"
80  subsystem_name = "window"
81}
82
83## Build snapshot }}}
84
85group("test") {
86  testonly = true
87  deps = [ "test:test" ]
88}
89