• 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
17ohos_shared_library("pasteboard_napi") {
18  include_dirs = [
19    "${pasteboard_innerkits_path}/include",
20    "//foundation/distributeddatamgr/pasteboard/framework/tlv",
21    "//foundation/distributeddatamgr/pasteboard/framework/uri",
22    "${ability_runtime_napi_path}/inner/napi_common",
23    "napi/include",
24    "${pasteboard_utils_path}/native/include",
25  ]
26
27  cflags = [
28    "-fPIC",
29    "-g3",
30  ]
31
32  sources = [
33    "napi/src/async_call.cpp",
34    "napi/src/napi_init.cpp",
35    "napi/src/napi_pasteboard.cpp",
36    "napi/src/napi_pastedata.cpp",
37    "napi/src/napi_pastedata_record.cpp",
38    "napi/src/napi_systempasteboard.cpp",
39    "napi/src/pasteboard_common.cpp",
40  ]
41
42  deps = [
43    "//foundation/arkui/napi/:ace_napi",
44    "//foundation/distributeddatamgr/pasteboard/framework/innerkits:pasteboard_client",
45    "//third_party/libuv:uv",
46  ]
47
48  external_deps = [
49    "ability_base:want",
50    "ability_base:zuri",
51    "ability_runtime:abilitykit_native",
52    "c_utils:utils",
53    "hiviewdfx_hilog_native:libhilog",
54    "ipc:ipc_core",
55    "multimedia_image_framework:image",
56  ]
57
58  relative_install_dir = "module"
59
60  subsystem_name = "distributeddatamgr"
61  part_name = "pasteboard"
62}
63