• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2024 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("//build/test.gni")
14import("//foundation/distributeddatamgr/pasteboard/pasteboard.gni")
15
16module_output_path = "distributeddatamgr/pasteboard"
17
18###############################################################################
19config("module_private_config") {
20  include_dirs = [
21    "${pasteboard_interfaces_path}/ndk/include",
22    "${pasteboard_framework_path}/innerkits/include",
23    "${pasteboard_interfaces_path}/kits/napi/include",
24    "${pasteboard_framework_path}/framework/include",
25    "${pasteboard_framework_path}/include/ffrt",
26  ]
27}
28
29common_deps = [
30  "${pasteboard_interfaces_path}/ndk:libpasteboard",
31  "${pasteboard_root_path}/framework/innerkits:pasteboard_client",
32]
33
34common_external_deps = [
35  "ability_base:want",
36  "access_token:libaccesstoken_sdk",
37  "access_token:libnativetoken",
38  "access_token:libtoken_setproc",
39  "c_utils:utils",
40  "ffrt:libffrt",
41  "hilog:libhilog",
42  "ipc:ipc_single",
43  "os_account:os_account_innerkits",
44  "udmf:libudmf",
45]
46
47ohos_unittest("PasteboardNdkTest") {
48  module_out_path = module_output_path
49
50  sources = [ "pasteboard_capi_test.cpp" ]
51
52  configs = [ ":module_private_config" ]
53
54  deps = common_deps
55
56  external_deps = common_external_deps
57}
58
59###############################################################################
60group("unittest") {
61  testonly = true
62
63  deps = [ ":PasteboardNdkTest" ]
64}
65###############################################################################
66