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_10", 22 ":ldso_debug_test_lib_2", 23 ":ldso_debug_test_lib_3", 24 ":ldso_debug_test_lib_4", 25 ":ldso_debug_test_lib_5", 26 ":ldso_debug_test_lib_6", 27 ":ldso_debug_test_lib_7", 28 ":ldso_debug_test_lib_8", 29 ":ldso_debug_test_lib_9", 30 ":ldso_memleak_check", 31 ] 32} 33 34ohos_executable("ldso_debug_test") { 35 subsystem_name = "musl" 36 part_name = "libc-test" 37 include_dirs = [ "../common" ] 38 39 sources = [ "ldso_debug_test.c" ] 40 configs = [ "//third_party/musl/libc-test/src/common:config_runtest" ] 41} 42 43ohos_executable("ldso_memleak_check") { 44 subsystem_name = "musl" 45 part_name = "libc-test" 46 include_dirs = [ "../common" ] 47 48 sources = [ "ldso_memleak_check.c" ] 49 configs = [ "//third_party/musl/libc-test/src/common:config_runtest" ] 50} 51 52ohos_shared_library("ldso_debug_test_lib_1") { 53 include_dirs = [ "." ] 54 sources = [ "ldso_debug_test_lib_1.c" ] 55 56 output_name = "ldso_debug_test_lib_1" 57 output_extension = "so" 58 subsystem_name = "musl" 59 part_name = "libc-test-lib" 60} 61 62ohos_shared_library("ldso_debug_test_lib_2") { 63 include_dirs = [ "." ] 64 sources = [ "ldso_debug_test_lib_2.c" ] 65 66 output_name = "ldso_debug_test_lib_2" 67 output_extension = "so" 68 subsystem_name = "musl" 69 part_name = "libc-test-lib" 70} 71 72ohos_shared_library("ldso_debug_test_lib_3") { 73 include_dirs = [ "." ] 74 sources = [ "ldso_debug_test_lib_3.c" ] 75 76 output_name = "ldso_debug_test_lib_3" 77 output_extension = "so" 78 subsystem_name = "musl" 79 part_name = "libc-test-lib" 80} 81 82ohos_shared_library("ldso_debug_test_lib_4") { 83 include_dirs = [ "." ] 84 deps = [ ":ldso_debug_test_lib_5" ] 85 sources = [ "ldso_debug_test_lib_4.c" ] 86 87 output_name = "ldso_debug_test_lib_4" 88 output_extension = "so" 89 subsystem_name = "musl" 90 part_name = "libc-test-lib" 91} 92 93ohos_shared_library("ldso_debug_test_lib_5") { 94 include_dirs = [ "." ] 95 sources = [ "ldso_debug_test_lib_5.c" ] 96 97 output_name = "ldso_debug_test_lib_5" 98 output_extension = "so" 99 subsystem_name = "musl" 100 part_name = "libc-test-lib" 101} 102 103ohos_shared_library("ldso_debug_test_lib_6") { 104 include_dirs = [ "." ] 105 deps = [ ":ldso_debug_test_lib_7" ] 106 sources = [ "ldso_debug_test_lib_4.c" ] 107 108 output_name = "ldso_debug_test_lib_6" 109 output_extension = "so" 110 subsystem_name = "musl" 111 part_name = "libc-test-lib" 112} 113 114ohos_shared_library("ldso_debug_test_lib_7") { 115 include_dirs = [ "." ] 116 sources = [ "ldso_debug_test_lib_5.c" ] 117 118 install_enable = false 119 output_name = "ldso_debug_test_lib_7" 120 output_extension = "so" 121 subsystem_name = "thirdparty" 122 part_name = "musl" 123} 124 125ohos_shared_library("ldso_debug_test_lib_8") { 126 include_dirs = [ "." ] 127 deps = [ ":ldso_debug_test_lib_9" ] 128 sources = [ "ldso_debug_test_lib_6.c" ] 129 130 output_name = "ldso_debug_test_lib_8" 131 output_extension = "so" 132 subsystem_name = "musl" 133 part_name = "libc-test-lib" 134} 135 136ohos_shared_library("ldso_debug_test_lib_9") { 137 include_dirs = [ "." ] 138 deps = [ ":ldso_debug_test_lib_10" ] 139 sources = [ "ldso_debug_test_lib_7.c" ] 140 141 output_name = "ldso_debug_test_lib_9" 142 output_extension = "so" 143 subsystem_name = "musl" 144 part_name = "libc-test-lib" 145} 146 147ohos_shared_library("ldso_debug_test_lib_10") { 148 include_dirs = [ "." ] 149 sources = [ "ldso_debug_test_lib_8.c" ] 150 151 install_enable = false 152 output_name = "ldso_debug_test_lib_10" 153 output_extension = "so" 154 subsystem_name = "thirdparty" 155 part_name = "musl" 156} 157