• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 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("//build/ohos.gni")
14import("//foundation/distributeddatamgr/datamgr_service/datamgr_service.gni")
15ohos_static_library("distributeddata_communicator_static") {
16  branch_protector_ret = "pac_ret"
17  sanitize = {
18    cfi = true
19    cfi_cross_dso = true
20    debug = false
21  }
22  sources = [
23    "src/app_pipe_handler.cpp",
24    "src/app_pipe_handler.h",
25    "src/app_pipe_mgr.cpp",
26    "src/app_pipe_mgr.h",
27    "src/ark_communication_provider.cpp",
28    "src/ark_communication_provider.h",
29    "src/communication_provider.cpp",
30    "src/communication_provider_impl.cpp",
31    "src/communication_provider_impl.h",
32    "src/communicator_context.cpp",
33    "src/data_buffer.cpp",
34    "src/device_manager_adapter.cpp",
35    "src/process_communicator_impl.cpp",
36    "src/softbus_adapter.h",
37    "src/softbus_adapter_standard.cpp",
38    "src/softbus_client.cpp",
39    "src/softbus_client.h",
40  ]
41
42  include_dirs = [
43    "../include/communicator",
44    "../include/dfx",
45    "../include/log",
46    "../include/autils",
47    "../include/utils",
48    "${dsoftbus_core_path}",
49    "${kv_store_common_path}",
50    "${kv_store_distributeddb_path}/interfaces/include",
51    "${kv_store_distributeddb_path}/include",
52    "${kv_store_distributeddb_path}/interfaces/include/relational",
53    "${kv_store_path}/interfaces/innerkits/distributeddata/include",
54  ]
55
56  cflags_cc = [ "-fvisibility=hidden" ]
57
58  deps = [
59    "../dfx:distributeddata_dfx_static",
60    "//foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/utils:distributeddata_utils_static",
61  ]
62
63  external_deps = [
64    "c_utils:utils",
65    "device_manager:devicemanagersdk",
66    "dsoftbus:softbus_client",
67    "hilog:libhilog",
68    "ipc:ipc_core",
69    "netmanager_base:net_conn_manager_if",
70  ]
71
72  subsystem_name = "distributeddatamgr"
73  part_name = "datamgr_service"
74  defines = [ "OPENSSL_SUPPRESS_DEPRECATED" ]
75}
76