tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

zlib.gn (1218B)


      1 # Copyright 2016 The Chromium Authors
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 import("//chromium/build/shim_headers.gni")
      6 
      7 shim_headers("zlib_shim") {
      8   root_path = "."
      9   headers = [ "zlib.h" ]
     10 }
     11 
     12 config("system_zlib") {
     13   defines = [
     14     "CHROMIUM_ZLIB_NO_CHROMECONF=1",
     15     "USE_SYSTEM_ZLIB=1",
     16   ]
     17 }
     18 
     19 config("zlib_config") {
     20   configs = [ ":system_zlib" ]
     21 }
     22 
     23 source_set("zlib") {
     24   deps = [ ":zlib_shim" ]
     25   libs = [ "z" ]
     26   public_configs = [ ":system_zlib" ]
     27 }
     28 
     29 shim_headers("minizip_shim") {
     30   root_path = "contrib"
     31   headers = [
     32     "minizip/crypt.h",
     33     "minizip/ioapi.h",
     34     "minizip/iowin32.h",
     35     "minizip/mztools.h",
     36     "minizip/unzip.h",
     37     "minizip/zip.h",
     38   ]
     39 }
     40 
     41 source_set("minizip") {
     42   deps = [ ":minizip_shim" ]
     43   libs = [ "minizip" ]
     44 }
     45 
     46 static_library("zip") {
     47   sources = [
     48     "google/zip.cc",
     49     "google/zip.h",
     50     "google/zip_internal.cc",
     51     "google/zip_internal.h",
     52     "google/zip_reader.cc",
     53     "google/zip_reader.h",
     54   ]
     55   deps = [
     56     ":minizip",
     57     "//base",
     58   ]
     59 }
     60 
     61 static_library("compression_utils") {
     62   sources = [
     63     "google/compression_utils.cc",
     64     "google/compression_utils.h",
     65   ]
     66   deps = [ ":zlib" ]
     67 }