# Copyright (c) 2024 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/ohos.gni") import("../../../../test_template.gni") ohos_executable("pthread_internal_lock_info") { subsystem_name = "thirdparty" part_name = "musl" sources = [ "pthread_internal_lock_info.c" ] include_dirs = [ "${musl_src_base}/ldso", "//${test_dir}/src/common", "//${test_dir}/src/functionalext/common", "${musl_src_base}/src/include", "${musl_src_base}/include", "${musl_src_base}/src/internal", ] configs = [ "//third_party/musl/libc-test/src/common:config_unittest" ] deps = [ "//third_party/musl:create_porting_src" ] external_deps = [ "bounds_checking_function:libsec_shared" ] cflags = [ "-Wno-int-to-void-pointer-cast", "-Wno-void-pointer-to-int-cast", ] if (musl_unit_test_flag) { defines = [ "UNIT_TEST_STATIC" ] } libs = [ "${musl_lib_dir}/libc.a" ] ohos_test = true test_output_dir = "${root_out_dir}/musl/libc-test" } group("functionalext_supplement_lock_info") { deps = [ ":pthread_internal_lock_info" ] }