提交 18fb33a3 编写于 作者: S SoftSquirrel

#I5FYCZ: modify zlib to shared to reduce process memory

Description: modify zlib to shared to reduce process memory
Sig: SIG_ApplicaitonFramework
Feature or Bugfix: Bugfix
Binary Source: No
Signed-off-by: NSoftSquirrel <xuhao47@huawei.com>
上级 51fc2f8d
...@@ -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.
先完成此消息的编辑!
想要评论请 注册