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