diff --git a/third_party/zlib/BUILD.gn b/third_party/zlib/BUILD.gn index 7396a6a12a7d3ef4f239309c0ccb673e09624c77..6ae079e60607a605275ba6a5bffae0756ec7ba1f 100644 --- a/third_party/zlib/BUILD.gn +++ b/third_party/zlib/BUILD.gn @@ -3,105 +3,6 @@ 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 = [ "." ] -} - -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") { - 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" ] - - install_images = [ - "system", - "updater", - ] - - symlink_target_name = [ "libz.so" ] - - innerapi_tags = [ "platformsdk" ] - part_name = "zlib" - subsystem_name = "thirdparty" -} - ohos_ndk_headers("zlib_header") { sources = [ "./zconf.h",