提交 56fca8dd 编写于 作者: K k00229000 提交者: public tcshversion

TicketNo:AR000BTGJM

Description:zlib GN build config
Team:OTHERS
Feature or Bugfix:Feature
Binary Source:No
PrivateCode(Yes/No):No

Change-Id: I120ccdb29c99723ed7ab374f619e055cb5a66dee
Reviewed-on: http://mgit-tm.rnd.huawei.com/4059049Reviewed-by: Nwuyonghui 00321266 <wuyonghui9@huawei.com>
Tested-by: Npublic jenkins <public_jenkins@notesmail.huawei.com>
Reviewed-by: Nwangxing 00438353 <raymond.wangxing@huawei.com>
上级 cacf7f1d
# Copyright (c) Huawei Technologies Co., Ltd. 2019-2019. All rights reserved.
import("//build/zidane.gni")
config("zlib_config") {
include_dirs = [ "." ]
cflags = [
"-Wno-incompatible-pointer-types",
"-Werror",
"-Wimplicit-function-declaration",
]
}
static_library("libz") {
sources = [
"adler32.c",
"compress.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.h",
"inflate.c",
"inftrees.c",
"inftrees.h",
"trees.c",
"trees.h",
"uncompr.c",
"zconf.h",
"zlib.h",
"zutil.c",
"zutil.h",
"contrib/minizip/ioapi.c",
"contrib/minizip/unzip.c",
]
public_configs = [ ":zlib_config" ]
}
static_library("libz_test") {
deps = [":libz"]
}
......@@ -30,6 +30,7 @@
# define _POSIX_SOURCE
#endif
#include <fcntl.h>
#include <unistd.h>
#ifdef _WIN32
# include <stddef.h>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册