• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2021-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.
13import("//build/ohos.gni")
14import("//foundation/filemanagement/dfs_service/distributedfile.gni")
15
16ohos_shared_library("libdistributedfiledaemon") {
17  include_dirs = [
18    "include",
19    "//third_party/json/include",
20  ]
21
22  sources = [
23    "src/device/device_info.cpp",
24    "src/device/device_manager_agent.cpp",
25    "src/ipc/daemon.cpp",
26    "src/ipc/daemon_stub.cpp",
27    "src/mountpoint/mount_manager.cpp",
28    "src/mountpoint/mount_point.cpp",
29    "src/multiuser/os_account_observer.cpp",
30    "src/network/devsl_dispatcher.cpp",
31    "src/network/kernel_talker.cpp",
32    "src/network/network_agent_template.cpp",
33    "src/network/session_pool.cpp",
34    "src/network/softbus/softbus_agent.cpp",
35    "src/network/softbus/softbus_session.cpp",
36    "src/network/softbus/softbus_session_dispatcher.cpp",
37  ]
38
39  deps = [
40    "${services_path}/distributedfiledaemon:distributed_file_daemon_kit_inner",
41    "${utils_path}:libdistributedfileutils",
42  ]
43
44  external_deps = [
45    "ability_base:want",
46    "common_event_service:cesfwk_innerkits",
47    "dataclassification:data_transit_mgr",
48    "device_auth:deviceauth_sdk",
49    "device_manager:devicemanagersdk",
50    "dsoftbus:softbus_client",
51    "hilog:libhilog",
52    "init:libbegetutil",
53    "ipc:ipc_core",
54    "safwk:system_ability_fwk",
55  ]
56  configs = [ "${utils_path}:compiler_configs" ]
57
58  defines = [ "LOG_TAG=\"distributedfile_daemon\"" ]
59
60  part_name = "dfs_service"
61  subsystem_name = "filemanagement"
62}
63
64config("public_config") {
65  include_dirs = [ "." ]
66}
67
68config("private_config") {
69  include_dirs = [
70    "${distributedfile_path}/frameworks/native/distributed_file_inner/include",
71    "${distributedfile_path}/utils/log/include",
72    "${media_library_path}/frameworks/utils/include",
73    "${media_library_path}/interfaces/inner_api/media_library_helper/include",
74    "${services_path}/distributedfiledaemon/include",
75  ]
76}
77
78ohos_shared_library("distributed_file_daemon_kit_inner") {
79  sources = [
80    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/distributed_file_daemon_manager.cpp",
81    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/distributed_file_daemon_manager_impl.cpp",
82    "${distributedfile_path}/frameworks/native/distributed_file_inner/src/distributed_file_daemon_proxy.cpp",
83    "${distributedfile_path}/utils/log/src/utils_log.cpp",
84  ]
85
86  defines = [ "LOG_TAG=\"distributedfile_daemon\"" ]
87
88  configs = [ ":private_config" ]
89
90  public_configs = [ ":public_config" ]
91
92  external_deps = [
93    "c_utils:utils",
94    "device_manager:devicemanagersdk",
95    "hilog:libhilog",
96    "ipc:ipc_core",
97    "media_library:media_library",
98    "safwk:system_ability_fwk",
99    "samgr:samgr_proxy",
100  ]
101
102  use_exceptions = true
103  part_name = "dfs_service"
104  subsystem_name = "filemanagement"
105}
106