• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6# http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14import("$build_root/ark.gni")
15
16config("zlib_config") {
17  cflags = [
18    "-Wno-incompatible-pointer-types",
19    "-Werror",
20    "-Wimplicit-function-declaration",
21    "-fPIC",
22  ]
23}
24
25config("zlib_public_config") {
26  include_dirs = [ "." ]
27}
28
29ohos_static_library("libz") {
30  sources = [
31    "//third_party/zlib/adler32.c",
32    "//third_party/zlib/compress.c",
33    "//third_party/zlib/contrib/minizip/ioapi.c",
34    "//third_party/zlib/contrib/minizip/unzip.c",
35    "//third_party/zlib/contrib/minizip/zip.c",
36    "//third_party/zlib/crc32.c",
37    "//third_party/zlib/crc32.h",
38    "//third_party/zlib/deflate.c",
39    "//third_party/zlib/deflate.h",
40    "//third_party/zlib/gzclose.c",
41    "//third_party/zlib/gzguts.h",
42    "//third_party/zlib/gzlib.c",
43    "//third_party/zlib/gzread.c",
44    "//third_party/zlib/gzwrite.c",
45    "//third_party/zlib/infback.c",
46    "//third_party/zlib/inffast.c",
47    "//third_party/zlib/inffast.h",
48    "//third_party/zlib/inffixed.h",
49    "//third_party/zlib/inflate.c",
50    "//third_party/zlib/inflate.h",
51    "//third_party/zlib/inftrees.c",
52    "//third_party/zlib/inftrees.h",
53    "//third_party/zlib/trees.c",
54    "//third_party/zlib/trees.h",
55    "//third_party/zlib/uncompr.c",
56    "//third_party/zlib/zconf.h",
57    "//third_party/zlib/zlib.h",
58    "//third_party/zlib/zutil.c",
59    "//third_party/zlib/zutil.h",
60  ]
61  configs = [ ":zlib_config" ]
62  public_configs = [ ":zlib_public_config" ]
63}
64