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 ] 26} 27 28common_deps = [ 29 "${pasteboard_interfaces_path}/ndk:libpasteboard", 30 "${pasteboard_root_path}/framework/innerkits:pasteboard_client", 31] 32 33common_external_deps = [ 34 "ability_base:want", 35 "access_token:libaccesstoken_sdk", 36 "access_token:libnativetoken", 37 "access_token:libtoken_setproc", 38 "c_utils:utils", 39 "hilog:libhilog", 40 "ipc:ipc_single", 41 "os_account:os_account_innerkits", 42 "udmf:libudmf", 43] 44 45ohos_unittest("PasteboardNdkTest") { 46 module_out_path = module_output_path 47 48 sources = [ "pasteboard_capi_test.cpp" ] 49 50 configs = [ ":module_private_config" ] 51 52 deps = common_deps 53 54 external_deps = common_external_deps 55} 56 57############################################################################### 58group("unittest") { 59 testonly = true 60 61 deps = [ ":PasteboardNdkTest" ] 62} 63############################################################################### 64