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 "samgr:samgr_proxy", 34 ] 35} 36 37ohos_static_library("vk_bundle_mgr_helper_test_common") { 38 visibility = [ ":*" ] 39 testonly = true 40 41 public_configs = [ ":vk_bundle_mgr_helper_test_common_public_config" ] 42 43 public_deps = [ 44 "//third_party/googletest:gtest_main", 45 "//third_party/vulkan-loader:vulkan_loader", 46 ] 47 48 external_deps = [ 49 "c_utils:utils", 50 "hilog:libhilog", 51 ] 52 subsystem_name = "bundle_info" 53 part_name = "vulkan-loader-bundle" 54} 55 56config("vk_bundle_mgr_helper_test_common_public_config") { 57 include_dirs = [ "vk_bundle_mgr_helper_tests.cpp" ] 58 59 cflags = [ 60 "-Wall", 61 "-Werror", 62 "-g3", 63 "-Dprivate=public", 64 "-Dprotected=public", 65 ] 66} 67