未验证 提交 8c6a4770 编写于 作者: O openharmony_ci 提交者: Gitee

!40 modify zlib to shared to reduce process memory

Merge pull request !40 from SoftSquirrel/master
...@@ -55,6 +55,45 @@ ohos_static_library("libz") { ...@@ -55,6 +55,45 @@ ohos_static_library("libz") {
subsystem_name = "thirdparty" subsystem_name = "thirdparty"
} }
ohos_shared_library("shared_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_ndk_headers("zlib_header") { ohos_ndk_headers("zlib_header") {
sources = [ sources = [
"./zconf.h", "./zconf.h",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册