1# Copyright (c) 2024 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/ohos.gni")
15import("../../../../test_template.gni")
16
17ohos_executable("pthread_internal_lock_info") {
18  subsystem_name = "thirdparty"
19  part_name = "musl"
20
21  sources = [ "pthread_internal_lock_info.c" ]
22
23  include_dirs = [
24    "${musl_src_base}/ldso",
25    "//${test_dir}/src/common",
26    "//${test_dir}/src/functionalext/common",
27    "${musl_src_base}/src/include",
28    "${musl_src_base}/include",
29    "${musl_src_base}/src/internal",
30  ]
31
32  configs = [ "//third_party/musl/libc-test/src/common:config_unittest" ]
33
34  deps = [ "//third_party/musl:create_porting_src" ]
35
36  external_deps = [ "bounds_checking_function:libsec_shared" ]
37
38  cflags = [
39    "-Wno-int-to-void-pointer-cast",
40    "-Wno-void-pointer-to-int-cast",
41  ]
42
43  if (musl_unit_test_flag) {
44    defines = [ "UNIT_TEST_STATIC" ]
45  }
46
47  libs = [ "${musl_lib_dir}/libc.a" ]
48
49  ohos_test = true
50  test_output_dir = "${root_out_dir}/musl/libc-test"
51}
52
53group("functionalext_supplement_lock_info") {
54  deps = [ ":pthread_internal_lock_info" ]
55}
56