1# Copyright (c) 2021-2023 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/lite/config/component/lite_component.gni") 15import("//build/lite/config/test.gni") 16import("platform_test.gni") 17 18lite_component("hdf_test_uhdf") { 19 # add hdf subsystem unittest 20 unittest_path = "./unittest" 21 if (ohos_build_type == "debug") { 22 deps = [ 23 "$unittest_path/config:hdf_adapter_uhdf_test_config", 24 "$unittest_path/manager:hdf_adapter_uhdf_test_door", 25 "$unittest_path/manager:hdf_adapter_uhdf_test_ioservice", 26 "$unittest_path/manager:hdf_adapter_uhdf_test_manager", 27 "$unittest_path/manager:hdf_adapter_uhdf_test_pm", 28 "$unittest_path/manager:hdf_adapter_uhdf_test_sbuf", 29 "$unittest_path/osal:hdf_adapter_uhdf_test_osal", 30 "$unittest_path/osal:hdf_adapter_uhdf_test_osal_posix", 31 ] 32 if (hdf_core_platform_test_support || hdf_core_platform_rtc_test_support) { 33 deps += [ "$unittest_path/platform:hdf_adapter_uhdf_test_platform" ] 34 } 35 } 36 features = [] 37} 38