• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023 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("intention_service_config") {
17  include_dirs = [
18    "include",
19    "${device_status_root_path}/intention/cooperate/server/include",
20    "${device_status_root_path}/intention/drag/server/include",
21    "${device_status_root_path}/interfaces/innerkits/interaction/include",
22  ]
23}
24
25ohos_shared_library("intention_service") {
26  sanitize = {
27    integer_overflow = true
28    ubsan = true
29    boundary_sanitize = true
30    cfi = true
31    cfi_cross_dso = true
32    debug = false
33  }
34
35  branch_protector_ret = "pac_ret"
36
37  defines = device_status_default_defines
38
39  include_dirs = [
40    "include",
41    "${device_status_root_path}/interfaces/innerkits/interaction/include",
42  ]
43
44  sources = [ "src/intention_service.cpp" ]
45
46  public_configs = [ ":intention_service_config" ]
47
48  deps = [
49    "${device_status_root_path}/intention/cooperate/server:intention_cooperate_server",
50    "${device_status_root_path}/intention/drag/server:intention_drag_server",
51    "${device_status_root_path}/intention/ipc/socket:intention_socket_server",
52    "${device_status_root_path}/intention/ipc/tunnel:intention_tunnel_server",
53    "${device_status_root_path}/intention/prototype:intention_prototype",
54    "${device_status_root_path}/utils/common:devicestatus_util",
55    "${device_status_root_path}/utils/ipc:devicestatus_ipc",
56  ]
57
58  external_deps = [
59    "hilog:libhilog",
60    "image_framework:image_native",
61    "input:libmmi-client",
62  ]
63
64  subsystem_name = "${device_status_subsystem_name}"
65  part_name = "${device_status_part_name}"
66}
67