1c29fa5a6Sopenharmony_ci# Copyright (c) 2024 Huawei Device Co., Ltd.
2c29fa5a6Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3c29fa5a6Sopenharmony_ci# you may not use this file except in compliance with the License.
4c29fa5a6Sopenharmony_ci# You may obtain a copy of the License at
5c29fa5a6Sopenharmony_ci#
6c29fa5a6Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7c29fa5a6Sopenharmony_ci#
8c29fa5a6Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9c29fa5a6Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10c29fa5a6Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11c29fa5a6Sopenharmony_ci# See the License for the specific language governing permissions and
12c29fa5a6Sopenharmony_ci# limitations under the License.
13c29fa5a6Sopenharmony_ci
14c29fa5a6Sopenharmony_ciimport("../../../device_status.gni")
15c29fa5a6Sopenharmony_ci
16c29fa5a6Sopenharmony_ciconfig("intention_stationary_client_public_config") {
17c29fa5a6Sopenharmony_ci  include_dirs = [
18c29fa5a6Sopenharmony_ci    "include",
19c29fa5a6Sopenharmony_ci    "${device_status_root_path}/interfaces/innerkits/include",
20c29fa5a6Sopenharmony_ci  ]
21c29fa5a6Sopenharmony_ci}
22c29fa5a6Sopenharmony_ci
23c29fa5a6Sopenharmony_ciohos_source_set("intention_stationary_client") {
24c29fa5a6Sopenharmony_ci  sanitize = {
25c29fa5a6Sopenharmony_ci    integer_overflow = true
26c29fa5a6Sopenharmony_ci    ubsan = true
27c29fa5a6Sopenharmony_ci    boundary_sanitize = true
28c29fa5a6Sopenharmony_ci    cfi = true
29c29fa5a6Sopenharmony_ci    cfi_cross_dso = true
30c29fa5a6Sopenharmony_ci    debug = false
31c29fa5a6Sopenharmony_ci  }
32c29fa5a6Sopenharmony_ci
33c29fa5a6Sopenharmony_ci  branch_protector_ret = "pac_ret"
34c29fa5a6Sopenharmony_ci
35c29fa5a6Sopenharmony_ci  include_dirs = [
36c29fa5a6Sopenharmony_ci    "include",
37c29fa5a6Sopenharmony_ci    "${device_status_root_path}/interfaces/innerkits/include",
38c29fa5a6Sopenharmony_ci  ]
39c29fa5a6Sopenharmony_ci
40c29fa5a6Sopenharmony_ci  sources = [ "src/stationary_client.cpp" ]
41c29fa5a6Sopenharmony_ci
42c29fa5a6Sopenharmony_ci  public_configs = [ ":intention_stationary_client_public_config" ]
43c29fa5a6Sopenharmony_ci
44c29fa5a6Sopenharmony_ci  defines = device_status_default_defines
45c29fa5a6Sopenharmony_ci
46c29fa5a6Sopenharmony_ci  deps = [
47c29fa5a6Sopenharmony_ci    "${device_status_root_path}/intention/data:intention_data",
48c29fa5a6Sopenharmony_ci    "${device_status_root_path}/intention/drag/data:intention_drag_data",
49c29fa5a6Sopenharmony_ci    "${device_status_root_path}/intention/ipc/socket:intention_socket_connection",
50c29fa5a6Sopenharmony_ci    "${device_status_root_path}/intention/ipc/tunnel:intention_tunnel_client",
51c29fa5a6Sopenharmony_ci    "${device_status_root_path}/intention/prototype:intention_prototype",
52c29fa5a6Sopenharmony_ci    "${device_status_root_path}/intention/stationary/data:intention_stationary_data",
53c29fa5a6Sopenharmony_ci    "${device_status_root_path}/utils/common:devicestatus_util",
54c29fa5a6Sopenharmony_ci    "${device_status_root_path}/utils/ipc:devicestatus_ipc",
55c29fa5a6Sopenharmony_ci  ]
56c29fa5a6Sopenharmony_ci
57c29fa5a6Sopenharmony_ci  external_deps = [
58c29fa5a6Sopenharmony_ci    "c_utils:utils",
59c29fa5a6Sopenharmony_ci    "hilog:libhilog",
60c29fa5a6Sopenharmony_ci    "image_framework:image_native",
61c29fa5a6Sopenharmony_ci  ]
62c29fa5a6Sopenharmony_ci
63c29fa5a6Sopenharmony_ci  subsystem_name = "${device_status_subsystem_name}"
64c29fa5a6Sopenharmony_ci  part_name = "${device_status_part_name}"
65c29fa5a6Sopenharmony_ci}
66