diff --git a/BUILD.gn b/BUILD.gn index a56abd7b2fd5fc4f4e5782ebb2c5fcbe31f2b970..9de158d0dab03ce0ee934757234fb9eaf499657b 100755 --- a/BUILD.gn +++ b/BUILD.gn @@ -55,6 +55,45 @@ ohos_static_library("libz") { 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") { sources = [ "./zconf.h",