• 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/filemanagement/dfs_service/distributedfile.gni")
15
16ohos_shared_library("libdistributedfiledaemon") {
17  include_dirs = [
18    "include",
19    "//foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp/include",
20    "//base/security/device_auth/interfaces/innerkits",
21    "//third_party/json/include",
22  ]
23
24  sources = [
25    "src/device/device_info.cpp",
26    "src/device/device_manager_agent.cpp",
27    "src/ipc/daemon.cpp",
28    "src/ipc/daemon_stub.cpp",
29    "src/mountpoint/mount_manager.cpp",
30    "src/mountpoint/mount_point.cpp",
31    "src/multiuser/os_account_observer.cpp",
32    "src/network/devsl_dispatcher.cpp",
33    "src/network/kernel_talker.cpp",
34    "src/network/network_agent_template.cpp",
35    "src/network/session_pool.cpp",
36    "src/network/softbus/softbus_agent.cpp",
37    "src/network/softbus/softbus_session.cpp",
38    "src/network/softbus/softbus_session_dispatcher.cpp",
39  ]
40
41  deps = [
42    "${utils_path}:libdistributedfileutils",
43    "//base/security/device_auth/services:deviceauth_sdk",
44    "//foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp:devicemanagersdk",
45  ]
46  external_deps = [
47    "ability_base:want",
48    "common_event_service:cesfwk_innerkits",
49    "dataclassification:data_transit_mgr",
50    "dsoftbus:softbus_client",
51    "init:libbegetutil",
52    "ipc:ipc_core",
53    "safwk:system_ability_fwk",
54  ]
55  configs = [ "${utils_path}:compiler_configs" ]
56
57  defines = [ "LOG_TAG=\"distributedfile_daemon\"" ]
58
59  part_name = "dfs_service"
60  subsystem_name = "filemanagement"
61}
62