• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022-2025 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("../../device_status.gni")
15
16config("devicestatus_util_private_config") {
17  include_dirs = [
18    ".",
19    "include",
20  ]
21}
22
23config("devicestatus_util_public_config") {
24  include_dirs = [
25    ".",
26    "include",
27    "${device_status_interfaces_path}/innerkits/interaction/include",
28  ]
29}
30
31ohos_shared_library("devicestatus_util") {
32  sanitize = {
33    integer_overflow = true
34    ubsan = true
35    boundary_sanitize = true
36    cfi = true
37    cfi_cross_dso = true
38    debug = false
39  }
40
41  branch_protector_ret = "pac_ret"
42
43  version_script = "libdevicestatus_util_map"
44  sources = [
45    "src/animation_curve.cpp",
46    "src/cooperate_hisysevent.cpp",
47    "src/drag_data_packer.cpp",
48    "src/preview_style_packer.cpp",
49    "src/util.cpp",
50    "src/util_napi.cpp",
51    "src/util_napi_error.cpp",
52    "src/utility.cpp",
53  ]
54
55  configs = [ ":devicestatus_util_private_config" ]
56
57  public_configs = [ ":devicestatus_util_public_config" ]
58
59  external_deps = [
60    "cJSON:cjson",
61    "c_utils:utils",
62    "graphic_2d:librender_service_client",
63    "hilog:libhilog",
64    "hisysevent:libhisysevent",
65    "image_framework:image_native",
66    "init:libbegetutil",
67    "napi:ace_napi",
68  ]
69
70  innerapi_tags = [ "platformsdk" ]
71  subsystem_name = "${device_status_subsystem_name}"
72  part_name = "${device_status_part_name}"
73}
74
75config("devicestatus_utils_config") {
76  include_dirs = [
77    ".",
78    "include",
79  ]
80}
81