• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 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.
13import("//base/print/print_fwk/print.gni")
14import("//build/ohos.gni")
15
16config("scan_interfaces_kits_napi_config") {
17  visibility = [ ":*" ]
18  include_dirs = [ "include" ]
19
20  cflags_cc = [ "-fno-exceptions" ]
21}
22
23ohos_shared_library("scan_client") {
24  include_dirs = [
25    "${print_utils_path}/include",
26    "${print_path}/frameworks/helper/scan_helper/include",
27  ]
28
29  public_configs = [ ":scan_interfaces_kits_napi_config" ]
30
31  branch_protector_ret = "pac_ret"
32  sanitize = {
33    cfi = true
34    cfi_cross_dso = true
35    boundary_sanitize = true
36    debug = false
37    integer_overflow = true
38    ubsan = true
39  }
40
41  sources = [
42    "src/scan_callback.cpp",
43    "src/scan_callback_stub.cpp",
44    "src/scan_manager_client.cpp",
45    "src/scan_sa_death_recipient.cpp",
46    "src/scan_service_proxy.cpp",
47    "src/scan_sync_load_callback.cpp",
48  ]
49
50  deps = [ "${print_path}/frameworks/helper/scan_helper:scan_helper" ]
51
52  external_deps = [
53    "ability_base:want",
54    "ability_base:zuri",
55    "ability_runtime:ability_manager",
56    "ability_runtime:abilitykit_native",
57    "ability_runtime:data_ability_helper",
58    "ability_runtime:napi_base_context",
59    "c_utils:utils",
60    "common_event_service:cesfwk_innerkits",
61    "eventhandler:libeventhandler",
62    "hilog:libhilog",
63    "ipc:ipc_core",
64    "napi:ace_napi",
65    "samgr:samgr_proxy",
66  ]
67
68  #relative_install_dir = "module"
69  install_enable = true
70  subsystem_name = "print"
71  innerapi_tags = [ "platformsdk" ]
72  part_name = "print_fwk"
73}
74