• 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("//base/miscservices/pasteboard/pasteboard.gni")
14import("//build/ohos.gni")
15
16config("pasteboard_client_config") {
17  visibility = [ ":*" ]
18  include_dirs = [
19    "${pasteboard_service_path}/core/include",
20    "${pasteboard_service_path}/zidl/include",
21    "include",
22    "//utils/native/base/include",
23    "${pasteboard_utils_path}/native/include",
24  ]
25}
26
27ohos_shared_library("pasteboard_client") {
28  sources = [
29    "${pasteboard_service_path}/zidl/src/pasteboard_observer_proxy.cpp",
30    "${pasteboard_service_path}/zidl/src/pasteboard_observer_stub.cpp",
31    "${pasteboard_service_path}/zidl/src/pasteboard_service_proxy.cpp",
32    "${pasteboard_service_path}/zidl/src/pasteboard_service_stub.cpp",
33    "src/paste_data.cpp",
34    "src/paste_data_record.cpp",
35    "src/pasteboard_client.cpp",
36    "src/pasteboard_observer.cpp",
37  ]
38  configs = [ ":pasteboard_client_config" ]
39  public_configs = [ ":pasteboard_client_config" ]
40  deps = [
41    "//foundation/aafwk/standard/interfaces/innerkits/base:base",
42    "//foundation/aafwk/standard/interfaces/innerkits/intent:intent",
43    "//foundation/aafwk/standard/interfaces/innerkits/uri:zuri",
44    "//foundation/aafwk/standard/interfaces/innerkits/want:want",
45    "//foundation/aafwk/standard/interfaces/kits/napi/aafwk/inner/napi_common:napi_common",
46    "//third_party/jsoncpp:jsoncpp",
47    "//utils/native/base:utils",
48  ]
49
50  external_deps = [
51    "hiviewdfx_hilog_native:libhilog",
52    "ipc:ipc_core",
53    "samgr_standard:samgr_proxy",
54  ]
55
56  subsystem_name = "miscservices"
57  part_name = "pasteboard_native"
58}
59