• 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("//base/miscservices/pasteboard/pasteboard.gni")
15import("//build/ohos.gni")
16
17config("pasteboard_service_config") {
18  visibility = [ ":*" ]
19  include_dirs = [
20    "zidl/include",
21    "core/include",
22    "${pasteboard_innerkits_path}/include",
23    "//utils/system/safwk/native/include",
24    "//third_party/json/include",
25    "${pasteboard_utils_path}/mock/include",
26    "${pasteboard_utils_path}/native/include",
27  ]
28
29  cflags_cc = [ "-fexceptions" ]
30}
31
32ohos_shared_library("pasteboard_service") {
33  sources = [
34    "${pasteboard_utils_path}/mock/src/mock_permission.cpp",
35    "${pasteboard_utils_path}/native/src/pasteboard_permission.cpp",
36    "core/src/pasteboard_service.cpp",
37    "zidl/src/pasteboard_observer_proxy.cpp",
38    "zidl/src/pasteboard_observer_stub.cpp",
39    "zidl/src/pasteboard_service_proxy.cpp",
40    "zidl/src/pasteboard_service_stub.cpp",
41  ]
42  public_configs = [
43    "//utils/native/base:utils_config",
44    ":pasteboard_service_config",
45  ]
46  deps = [
47    "${pasteboard_innerkits_path}:pasteboard_client",
48    "//foundation/aafwk/standard/frameworks/kits/ability/native:abilitykit_native",
49    "//foundation/aafwk/standard/interfaces/innerkits/base:base",
50    "//foundation/aafwk/standard/interfaces/innerkits/intent:intent",
51    "//foundation/aafwk/standard/interfaces/innerkits/want:want",
52    "//third_party/jsoncpp:jsoncpp",
53    "//utils/native/base:utils",
54  ]
55
56  external_deps = [
57    "eventhandler:libeventhandler",
58    "hisysevent_native:libhisysevent",
59    "hiviewdfx_hilog_native:libhilog",
60    "ipc:ipc_core",
61    "safwk:system_ability_fwk",
62    "samgr_standard:samgr_proxy",
63  ]
64  subsystem_name = "miscservices"
65  part_name = "pasteboard_native"
66}
67