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("../../../test_template.gni") 15 16group("functionalext_ldso_debug_test") { 17 testonly = true 18 deps = [ 19 ":ldso_debug_test", 20 ":ldso_debug_test_lib_1", 21 ":ldso_debug_test_lib_2", 22 ":ldso_debug_test_lib_3", 23 ":ldso_debug_test_lib_4", 24 ":ldso_debug_test_lib_5", 25 ] 26} 27 28ohos_executable("ldso_debug_test") { 29 subsystem_name = "musl" 30 part_name = "libc-test" 31 include_dirs = [ "../common" ] 32 33 sources = [ "ldso_debug_test.c" ] 34 configs = [ "//third_party/musl/libc-test/src/common:config_runtest" ] 35} 36 37ohos_shared_library("ldso_debug_test_lib_1") { 38 include_dirs = [ "." ] 39 sources = [ "ldso_debug_test_lib_1.c" ] 40 41 output_name = "ldso_debug_test_lib_1" 42 output_extension = "so" 43 subsystem_name = "musl" 44 part_name = "libc-test-lib" 45} 46 47ohos_shared_library("ldso_debug_test_lib_2") { 48 include_dirs = [ "." ] 49 sources = [ "ldso_debug_test_lib_2.c" ] 50 51 output_name = "ldso_debug_test_lib_2" 52 output_extension = "so" 53 subsystem_name = "musl" 54 part_name = "libc-test-lib" 55} 56 57ohos_shared_library("ldso_debug_test_lib_3") { 58 include_dirs = [ "." ] 59 sources = [ "ldso_debug_test_lib_3.c" ] 60 61 output_name = "ldso_debug_test_lib_3" 62 output_extension = "so" 63 subsystem_name = "musl" 64 part_name = "libc-test-lib" 65} 66 67ohos_shared_library("ldso_debug_test_lib_4") { 68 include_dirs = [ "." ] 69 deps = [ ":ldso_debug_test_lib_5" ] 70 sources = [ "ldso_debug_test_lib_4.c" ] 71 72 output_name = "ldso_debug_test_lib_4" 73 output_extension = "so" 74 subsystem_name = "musl" 75 part_name = "libc-test-lib" 76} 77 78ohos_shared_library("ldso_debug_test_lib_5") { 79 include_dirs = [ "." ] 80 sources = [ "ldso_debug_test_lib_5.c" ] 81 82 output_name = "ldso_debug_test_lib_5" 83 output_extension = "so" 84 subsystem_name = "musl" 85 part_name = "libc-test-lib" 86} 87