• 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  sources = [
17    "src/app_pipe_handler.cpp",
18    "src/app_pipe_handler.h",
19    "src/app_pipe_mgr.cpp",
20    "src/app_pipe_mgr.h",
21    "src/ark_communication_provider.cpp",
22    "src/ark_communication_provider.h",
23    "src/communication_provider.cpp",
24    "src/communication_provider_impl.cpp",
25    "src/communication_provider_impl.h",
26    "src/communication_strategy.cpp",
27    "src/communicator_context.cpp",
28    "src/data_buffer.cpp",
29    "src/device_manager_adapter.cpp",
30    "src/process_communicator_impl.cpp",
31    "src/softbus_adapter.h",
32    "src/softbus_adapter_standard.cpp",
33    "src/softbus_client.cpp",
34    "src/softbus_client.h",
35  ]
36
37  include_dirs = [
38    "../include/communicator",
39    "../include/dfx",
40    "../include/log",
41    "../include/autils",
42    "../include/utils",
43    "${dsoftbus_core_path}",
44    "${kv_store_common_path}",
45    "${kv_store_distributeddb_path}/interfaces/include",
46    "${kv_store_distributeddb_path}/include",
47    "${kv_store_distributeddb_path}/interfaces/include/relational",
48    "${kv_store_path}/interfaces/innerkits/distributeddata/include",
49  ]
50
51  cflags_cc = [ "-fvisibility=hidden" ]
52
53  deps = [
54    "../dfx:distributeddata_dfx_static",
55    "//foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/utils:distributeddata_utils_static",
56  ]
57
58  external_deps = [
59    "c_utils:utils",
60    "device_manager:devicemanagersdk",
61    "dsoftbus:softbus_client",
62    "hilog:libhilog",
63    "ipc:ipc_core",
64    "netmanager_base:net_conn_manager_if",
65  ]
66
67  subsystem_name = "distributeddatamgr"
68  part_name = "datamgr_service"
69  defines = [ "OPENSSL_SUPPRESS_DEPRECATED" ]
70}
71