1# Copyright (c) 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/test.gni") 15module_out_path = "thirdparty/vulkan-loader" 16 17group("unittest") { 18 testonly = true 19 20 deps = [ ":vk_bundle_mgr_helper_test" ] 21} 22 23ohos_unittest("vk_bundle_mgr_helper_test") { 24 module_out_path = module_out_path 25 sources = [ "vk_bundle_mgr_helper_tests.cpp" ] 26 deps = [ ":vk_bundle_mgr_helper_test_common" ] 27 28 external_deps = [ 29 "bundle_framework:appexecfwk_base", 30 "bundle_framework:appexecfwk_core", 31 "c_utils:utils", 32 "ipc:ipc_core", 33 "vulkan-headers:vulkan_headers", 34 "vulkan-loader:vulkan_loader", 35 "samgr:samgr_proxy", 36 ] 37} 38 39ohos_static_library("vk_bundle_mgr_helper_test_common") { 40 visibility = [ ":*" ] 41 testonly = true 42 43 public_configs = [ ":vk_bundle_mgr_helper_test_common_public_config" ] 44 45 external_deps = [ 46 "c_utils:utils", 47 "googletest:gtest_main", 48 "hilog:libhilog", 49 ] 50 51 subsystem_name = "bundle_info" 52 part_name = "vulkan-loader-bundle" 53} 54 55config("vk_bundle_mgr_helper_test_common_public_config") { 56 include_dirs = [ "../../../bundle_mgr_helper" ] 57 58 cflags = [ 59 "-Wall", 60 "-Werror", 61 "-g3", 62 "-Dprivate=public", 63 "-Dprotected=public", 64 ] 65} 66