# Copyright (c) 2022 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("../../../../test_template.gni") import("test_src_functionalext_supplement_stdio.gni") foreach(s, functionalext_supplement_stdio_test) { test_unittest(s) { target_dir = "functionalext/supplement/stdio" } } ohos_executable("fdsan") { subsystem_name = "thirdparty" part_name = "musl" sources = [ "fdsan.cpp" ] include_dirs = [ "//${test_dir}/src/functionalext/common", "//${test_dir}/src/common", "${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", ] libs = [ "${musl_lib_dir}/libc.a" ] ohos_test = true test_output_dir = "${root_out_dir}/musl/libc-test" } group("functionalext_supplement_stdio_test") { testonly = true deps = [] foreach(s, functionalext_supplement_stdio_test) { deps += [ ":${s}" ] } }