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/lite/config/component/lite_component.gni") 15import("//build/lite/config/test.gni") 16 17if (ohos_kernel_type == "liteos_a") { 18 unittest("ResmgrTest") { 19 output_extension = "bin" 20 21 sources = [ 22 "unittest/lite/common/global_test.cpp", 23 "unittest/lite/common/hap_manager_test.cpp", 24 "unittest/lite/common/hap_parser_test.cpp", 25 "unittest/lite/common/hap_resource_test.cpp", 26 "unittest/lite/common/locale_info_test.cpp", 27 "unittest/lite/common/res_config_impl_test.cpp", 28 "unittest/lite/common/res_config_test.cpp", 29 "unittest/lite/common/res_desc_test.cpp", 30 "unittest/lite/common/resource_manager_performance_test.cpp", 31 "unittest/lite/common/resource_manager_test.cpp", 32 "unittest/lite/common/string_utils_test.cpp", 33 "unittest/lite/common/test_common.cpp", 34 ] 35 36 include_dirs = [ 37 "unittest/lite/common", 38 "//base/global/resource_management_lite/frameworks/resmgr_lite/include", 39 "//base/global/resource_management_lite/interfaces/inner_api/include", 40 "//base/global/i18n_lite/interfaces/kits/i18n/include/", 41 ] 42 43 deps = [ "//base/global/resource_management_lite/frameworks/resmgr_lite:global_resmgr" ] 44 output_dir = "$root_out_dir/test/unittest/global" 45 } 46 47 group("unittest") { 48 deps = [ ":ResmgrTest" ] 49 } 50} else { 51 group("unittest") { 52 deps = [] 53 } 54} 55