• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 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.
13
14import("//build/ohos.gni")
15import("//foundation/distributeddatamgr/pasteboard/pasteboard.gni")
16
17config("pasteboard_service_config") {
18  visibility = [ ":*" ]
19  visibility += [ "//foundation/distributeddatamgr/pasteboard/test/fuzztest/pasteboardservice_fuzzer/*" ]
20  include_dirs = [
21    "dfx/src",
22    "dfx/src/behaviour",
23    "dfx/src/statistic",
24    "dfx/src/fault",
25    "zidl/include",
26    "account/include",
27    "core/include",
28    "load/include",
29    "${filemanagement_service_path}/distributedfiledaemon/include/ipc",
30    "${pasteboard_innerkits_path}/include",
31    "${pasteboard_utils_path}/mock/include",
32    "${pasteboard_utils_path}/native/include",
33    "${pasteboard_utils_path}/system/safwk/native/include",
34    "${pasteboard_framework_path}/framework/include",
35    "${pasteboard_framework_path}/framework/include/device",
36    "//commonlibrary/c_utils/base/include",
37    "//third_party/json/include",
38  ]
39  ldflags = [ "-Wl,--exclude-libs=ALL" ]
40  cflags = [
41    "-fdata-sections",
42    "-ffunction-sections",
43    "-fvisibility=hidden",
44  ]
45  cflags_cc = []
46  if (os_dlp_part_enabled) {
47    cflags_cc += [ "-DWITH_DLP" ]
48  }
49}
50
51ohos_shared_library("pasteboard_service") {
52  sources = [
53    "${pasteboard_innerkits_path}/src/paste_data.cpp",
54    "${pasteboard_innerkits_path}/src/paste_data_record.cpp",
55    "account/src/account_manager.cpp",
56    "core/src/pasteboard_dialog.cpp",
57    "core/src/pasteboard_service.cpp",
58    "dfx/src/behaviour/pasteboard_behaviour_reporter_impl.cpp",
59    "dfx/src/calculate_time_consuming.cpp",
60    "dfx/src/command.cpp",
61    "dfx/src/fault/pasteboard_fault_impl.cpp",
62    "dfx/src/hiview_adapter.cpp",
63    "dfx/src/pasteboard_dump_helper.cpp",
64    "dfx/src/pasteboard_trace.cpp",
65    "dfx/src/reporter.cpp",
66    "dfx/src/statistic/time_consuming_statistic_impl.cpp",
67    "load/src/config.cpp",
68    "load/src/loader.cpp",
69    "zidl/src/pasteboard_observer_proxy.cpp",
70    "zidl/src/pasteboard_service_stub.cpp",
71  ]
72  public_configs = [
73    "//commonlibrary/c_utils/base:utils_config",
74    ":pasteboard_service_config",
75  ]
76  deps = [
77    "${pasteboard_framework_path}:pasteboard_framework",
78    "//foundation/distributeddatamgr/pasteboard/framework/framework:pasteboard_framework",
79    "//foundation/distributeddatamgr/pasteboard/framework/tlv:pasteboard_tlv",
80    "//foundation/distributeddatamgr/pasteboard/framework/uri:pasteboard_uri",
81  ]
82
83  external_deps = [
84    "ability_base:base",
85    "ability_base:want",
86    "ability_base:zuri",
87    "ability_runtime:ability_manager",
88    "ability_runtime:uri_permission_mgr",
89    "ability_runtime:wantagent_innerkits",
90    "access_token:libaccesstoken_sdk",
91    "app_file_service:remote_file_share_native",
92    "bundle_framework:appexecfwk_base",
93    "bundle_framework:appexecfwk_core",
94    "c_utils:utils",
95    "device_info_manager:distributed_device_profile_client",
96    "device_manager:devicemanagersdk",
97    "dfs_service:distributed_file_daemon_kit_inner",
98    "eventhandler:libeventhandler",
99    "hilog:libhilog",
100    "hisysevent:libhisysevent",
101    "hitrace:hitrace_meter",
102    "hitrace:libhitracechain",
103    "image_framework:image_native",
104    "imf:inputmethod_client",
105    "init:libbeget_proxy",
106    "init:libbegetutil",
107    "input:libmmi-client",
108    "ipc:ipc_core",
109    "os_account:os_account_innerkits",
110    "safwk:system_ability_fwk",
111    "samgr:samgr_proxy",
112    "time_service:time_client",
113  ]
114  if (os_dlp_part_enabled) {
115    external_deps += [ "dlp_permission_service:libdlp_permission_sdk" ]
116  }
117  subsystem_name = "distributeddatamgr"
118  part_name = "pasteboard"
119}
120