代码拉取完成,页面将自动刷新
同步操作将从 OpenHarmony/third_party_FreeBSD 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#
# 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("FreeBSD.gni")
config("free_bsd_config") {
include_dirs = [ "//third_party/FreeBSD" ]
}
ohos_static_library("libfreebsd_static") {
output_name = "libfreebsd_static"
sources = [ "lib/libc/gen/fts.c" ]
if (use_libfuzzer && !is_mac) {
cflags = []
} else {
cflags = [
"-fno-emulated-tls",
"-fno-lto",
"-fno-whole-program-vtables",
]
cflags += [
"-D_GNU_SOURCE",
"-DHAVE_REALLOCARRAY",
"-w",
]
}
if (host_cpu == "arm64" && host_os == "linux") {
cflags += [
"-DWITH_FREEBSD"
]
}
public_configs = [ ":free_bsd_config" ]
}
if (is_standard_system) {
static_library("ld128_static") {
sources = [
"lib/msun/ld128/e_lgammal_r.c",
"lib/msun/ld128/e_powl.c",
"lib/msun/ld128/k_cosl.c",
"lib/msun/ld128/k_sinl.c",
"lib/msun/ld128/s_erfl.c",
"lib/msun/ld128/s_expl.c",
"lib/msun/ld128/s_logl.c",
"lib/msun/src/e_acoshl.c",
"lib/msun/src/e_coshl.c",
"lib/msun/src/e_lgammal.c",
"lib/msun/src/e_sinhl.c",
"lib/msun/src/s_asinhl.c",
"lib/msun/src/s_tanhl.c",
]
defines = [ "LD128_ENABLE" ]
include_dirs = [
"//third_party/FreeBSD/lib/msun/ld128",
"//third_party/FreeBSD/lib/msun/src",
"//third_party/FreeBSD/lib/libc/include",
"//third_party/FreeBSD/sys",
]
configs -= build_inherited_configs
configs += [ "//build/config/components/musl:soft_musl_config" ]
cflags = [
"-mllvm",
"-instcombine-max-iterations=0",
"-ffp-contract=fast",
"-O3",
"-fPIC",
"-fstack-protector-strong",
]
}
freebsd_files = [
"contrib/gdtoa/strtod.c",
"contrib/gdtoa/gethex.c",
"contrib/gdtoa/smisc.c",
"contrib/gdtoa/misc.c",
"contrib/gdtoa/strtord.c",
"contrib/gdtoa/hexnan.c",
"contrib/gdtoa/gmisc.c",
"contrib/gdtoa/hd_init.c",
"contrib/gdtoa/strtodg.c",
"contrib/gdtoa/ulp.c",
"contrib/gdtoa/strtof.c",
"contrib/gdtoa/sum.c",
"lib/libc/gdtoa/glue.c",
"lib/libc/stdio/parsefloat.c",
]
static_library("libc_static") {
sources = [
"contrib/tcp_wrappers/strcasecmp.c",
"lib/libc/gen/arc4random.c",
"lib/libc/gen/arc4random_uniform.c",
"lib/libc/stdlib/qsort.c",
"lib/libc/stdlib/strtoimax.c",
"lib/libc/stdlib/strtoul.c",
"lib/libc/stdlib/strtoumax.c",
]
if (!is_llvm_build) {
sources += [ "contrib/libexecinfo/unwind.c" ]
}
if (musl_arch == "arm") {
sources += freebsd_files
} else if (musl_arch == "aarch64") {
sources += [ "lib/msun/src/s_frexpl.c" ]
if (!defined(ARM_FEATURE_SVE) && !defined(ARM_FEATURE_MTE)) {
sources += freebsd_files
}
} else {
not_needed([ "freebsd_files" ])
}
cflags = [
"-O3",
"-fPIC",
"-fstack-protector-strong",
]
if (!(use_libfuzzer || is_mac || is_asan || use_clang_coverage)) {
cflags += [ "-flto" ]
}
if (!defined(include_dirs)) {
include_dirs = []
}
if (musl_arch == "aarch64") {
include_dirs += [ "//third_party/FreeBSD/lib/libc/aarch64" ]
} else if (musl_arch == "arm") {
include_dirs += [ "//third_party/FreeBSD/lib/libc/arm" ]
}
include_dirs += [ "//third_party/FreeBSD/lib/libc/include" ]
include_dirs += [ "//third_party/FreeBSD/contrib/libexecinfo" ]
include_dirs += [ "//third_party/FreeBSD/crypto/openssh/openbsd-compat" ]
configs -= build_inherited_configs
configs += [ "//build/config/components/musl:soft_musl_config" ]
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。