代码拉取完成,页面将自动刷新
同步操作将从 OpenHarmony/third_party_zlib 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# Copyright (c) 2023 Huawei Device Co., Ltd. All rights reserved.
import("//build/config/config.gni")
import("//build/ohos.gni")
import("//build/ohos/ndk/ndk.gni")
config("zlib_config") {
cflags = [
"-Wno-incompatible-pointer-types",
"-Werror",
"-Wno-strict-prototypes",
"-Wimplicit-function-declaration",
]
}
config("zlib_public_config") {
include_dirs = [
".",
"contrib/minizip",
]
}
ohos_static_library("libz") {
sources = [
"adler32.c",
"compress.c",
"contrib/minizip/ioapi.c",
"contrib/minizip/unzip.c",
"contrib/minizip/zip.c",
"crc32.c",
"crc32.h",
"deflate.c",
"deflate.h",
"gzclose.c",
"gzguts.h",
"gzlib.c",
"gzread.c",
"gzwrite.c",
"infback.c",
"inffast.c",
"inffast.h",
"inffixed.h",
"inflate.c",
"inflate.h",
"inftrees.c",
"inftrees.h",
"trees.c",
"trees.h",
"uncompr.c",
"zconf.h",
"zlib.h",
"zutil.c",
"zutil.h",
]
configs = [ ":zlib_config" ]
public_configs = [ ":zlib_public_config" ]
part_name = "zlib"
subsystem_name = "thirdparty"
}
ohos_shared_library("shared_libz") {
branch_protector_ret = "pac_ret"
sources = [
"adler32.c",
"compress.c",
"contrib/minizip/ioapi.c",
"contrib/minizip/unzip.c",
"contrib/minizip/zip.c",
"crc32.c",
"crc32.h",
"deflate.c",
"deflate.h",
"gzclose.c",
"gzguts.h",
"gzlib.c",
"gzread.c",
"gzwrite.c",
"infback.c",
"inffast.c",
"inffast.h",
"inffixed.h",
"inflate.c",
"inflate.h",
"inftrees.c",
"inftrees.h",
"trees.c",
"trees.h",
"uncompr.c",
"zconf.h",
"zlib.h",
"zutil.c",
"zutil.h",
]
configs = [ ":zlib_config" ]
public_configs = [ ":zlib_public_config" ]
if (current_os == "ios") {
ldflags = [
"-Wl",
"-install_name",
"@rpath/libshared_libz.framework/libshared_libz",
]
}
install_images = [
"system",
"updater",
]
symlink_target_name = [ "libz.so" ]
innerapi_tags = [
"chipsetsdk",
"platformsdk",
]
part_name = "zlib"
subsystem_name = "thirdparty"
}
if (current_os == "ios") {
ohos_combine_darwin_framework("libshared_libz") {
deps = [ ":shared_libz" ]
subsystem_name = "thirdparty"
part_name = "zlib"
}
}
if (current_cpu == "arm64") {
config("zlib_crc_config") {
cflags = [
"-Wno-incompatible-pointer-types",
"-Werror",
"-Wno-strict-prototypes",
"-Wimplicit-function-declaration",
"-march=armv8-a+crc",
]
}
} else {
config("zlib_crc_config") {
cflags = [
"-Wno-incompatible-pointer-types",
"-Werror",
"-Wno-strict-prototypes",
"-Wimplicit-function-declaration",
]
}
}
ohos_static_library("libz_crc") {
sources = [
"crc32.c",
"crc32.h",
"zconf.h",
]
configs = [ ":zlib_crc_config" ]
public_configs = [ ":zlib_public_config" ]
part_name = "zlib"
subsystem_name = "thirdparty"
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。