• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 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("intention_boomerang_server_public_config") {
17  include_dirs = [
18    "include",
19    "${device_status_root_path}/interfaces/innerkits/include",
20    "${device_status_root_path}/libs/interface",
21    "${device_status_root_path}/services/native/include",
22  ]
23}
24
25ohos_source_set("intention_boomerang_server") {
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  include_dirs = [
38    "include",
39    "${device_status_root_path}/interfaces/innerkits/include",
40    "${device_status_root_path}/libs/interface",
41  ]
42
43  sources = [ "src/boomerang_server.cpp" ]
44
45  public_configs = [ ":intention_boomerang_server_public_config" ]
46
47  defines = device_status_default_defines
48
49  deps = [
50    "${device_status_root_path}/intention/prototype:intention_prototype",
51    "${device_status_root_path}/utils/common:devicestatus_util",
52    "${device_status_root_path}/utils/ipc:devicestatus_ipc",
53  ]
54
55  external_deps = [
56    "access_token:libaccesstoken_sdk",
57    "eventhandler:libeventhandler",
58    "bundle_framework:appexecfwk_core",
59    "graphic_2d:librender_service_client",
60    "hilog:libhilog",
61    "hisysevent:libhisysevent",
62    "hitrace:hitrace_meter",
63    "input:libmmi-client",
64    "samgr:samgr_proxy",
65    "window_manager:libdm",
66  ]
67
68  if (device_status_boomerang_onestep) {
69    defines += [ "BOOMERANG_ONESTEP" ]
70    external_deps += [
71      "window_manager:libwm",
72    ]
73  }
74
75  subsystem_name = "${device_status_subsystem_name}"
76  part_name = "${device_status_part_name}"
77}
78