1bc03f14fSopenharmony_ci# Copyright (c) 2024 Huawei Device Co., Ltd. 2bc03f14fSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3bc03f14fSopenharmony_ci# you may not use this file except in compliance with the License. 4bc03f14fSopenharmony_ci# You may obtain a copy of the License at 5bc03f14fSopenharmony_ci# 6bc03f14fSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7bc03f14fSopenharmony_ci# 8bc03f14fSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9bc03f14fSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10bc03f14fSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11bc03f14fSopenharmony_ci# See the License for the specific language governing permissions and 12bc03f14fSopenharmony_ci# limitations under the License. 13bc03f14fSopenharmony_ciimport("//build/test.gni") 14bc03f14fSopenharmony_ciimport("//foundation/distributeddatamgr/pasteboard/pasteboard.gni") 15bc03f14fSopenharmony_ci 16bc03f14fSopenharmony_cimodule_output_path = "distributeddatamgr/pasteboard" 17bc03f14fSopenharmony_ci 18bc03f14fSopenharmony_ci############################################################################### 19bc03f14fSopenharmony_ciconfig("module_private_config") { 20bc03f14fSopenharmony_ci include_dirs = [ 21bc03f14fSopenharmony_ci "${pasteboard_interfaces_path}/ndk/include", 22bc03f14fSopenharmony_ci "${pasteboard_framework_path}/innerkits/include", 23bc03f14fSopenharmony_ci "${pasteboard_interfaces_path}/kits/napi/include", 24bc03f14fSopenharmony_ci "${pasteboard_framework_path}/framework/include", 25bc03f14fSopenharmony_ci ] 26bc03f14fSopenharmony_ci} 27bc03f14fSopenharmony_ci 28bc03f14fSopenharmony_cicommon_deps = [ 29bc03f14fSopenharmony_ci "${pasteboard_interfaces_path}/ndk:libpasteboard", 30bc03f14fSopenharmony_ci "${pasteboard_root_path}/framework/innerkits:pasteboard_client", 31bc03f14fSopenharmony_ci] 32bc03f14fSopenharmony_ci 33bc03f14fSopenharmony_cicommon_external_deps = [ 34bc03f14fSopenharmony_ci "ability_base:want", 35bc03f14fSopenharmony_ci "access_token:libaccesstoken_sdk", 36bc03f14fSopenharmony_ci "access_token:libnativetoken", 37bc03f14fSopenharmony_ci "access_token:libtoken_setproc", 38bc03f14fSopenharmony_ci "c_utils:utils", 39bc03f14fSopenharmony_ci "hilog:libhilog", 40bc03f14fSopenharmony_ci "ipc:ipc_single", 41bc03f14fSopenharmony_ci "os_account:os_account_innerkits", 42bc03f14fSopenharmony_ci "udmf:libudmf", 43bc03f14fSopenharmony_ci] 44bc03f14fSopenharmony_ci 45bc03f14fSopenharmony_ciohos_unittest("PasteboardNdkTest") { 46bc03f14fSopenharmony_ci module_out_path = module_output_path 47bc03f14fSopenharmony_ci 48bc03f14fSopenharmony_ci sources = [ "pasteboard_capi_test.cpp" ] 49bc03f14fSopenharmony_ci 50bc03f14fSopenharmony_ci configs = [ ":module_private_config" ] 51bc03f14fSopenharmony_ci 52bc03f14fSopenharmony_ci deps = common_deps 53bc03f14fSopenharmony_ci 54bc03f14fSopenharmony_ci external_deps = common_external_deps 55bc03f14fSopenharmony_ci} 56bc03f14fSopenharmony_ci 57bc03f14fSopenharmony_ci############################################################################### 58bc03f14fSopenharmony_cigroup("unittest") { 59bc03f14fSopenharmony_ci testonly = true 60bc03f14fSopenharmony_ci 61bc03f14fSopenharmony_ci deps = [ ":PasteboardNdkTest" ] 62bc03f14fSopenharmony_ci} 63bc03f14fSopenharmony_ci############################################################################### 64