| OLD | NEW |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 config("zlib_config") { | 5 config("zlib_config") { |
| 6 include_dirs = [ "." ] | 6 include_dirs = [ "." ] |
| 7 } | 7 } |
| 8 | 8 |
| 9 static_library("zlib_x86_simd") { | |
| 10 if (cpu_arch == "x86" || cpu_arch == "x64") { | |
| 11 sources = [ "crc_folding.c", "fill_window_sse.c" ] | |
| 12 cflags = [ "-msse2", "-msse4.2", "-mpclmul" ] | |
| 13 } else { | |
| 14 sources = [ "simd_stub.c"] | |
| 15 } | |
| 16 } | |
| 17 | |
| 18 static_library("zlib") { | 9 static_library("zlib") { |
| 19 if (!is_win) { | 10 if (!is_win) { |
| 20 # Don't stomp on "libzlib" on other platforms. | 11 # Don't stomp on "libzlib" on other platforms. |
| 21 output_name = "chrome_zlib" | 12 output_name = "chrome_zlib" |
| 22 } | 13 } |
| 23 | 14 |
| 24 sources = [ | 15 sources = [ |
| 25 "adler32.c", | 16 "adler32.c", |
| 26 "compress.c", | 17 "compress.c", |
| 27 "crc32.c", | 18 "crc32.c", |
| (...skipping 10 matching lines...) Expand all Loading... |
| 38 "inffast.h", | 29 "inffast.h", |
| 39 "inffixed.h", | 30 "inffixed.h", |
| 40 "inflate.c", | 31 "inflate.c", |
| 41 "inflate.h", | 32 "inflate.h", |
| 42 "inftrees.c", | 33 "inftrees.c", |
| 43 "inftrees.h", | 34 "inftrees.h", |
| 44 "mozzconf.h", | 35 "mozzconf.h", |
| 45 "trees.c", | 36 "trees.c", |
| 46 "trees.h", | 37 "trees.h", |
| 47 "uncompr.c", | 38 "uncompr.c", |
| 48 "x86.h", | |
| 49 "zconf.h", | 39 "zconf.h", |
| 50 "zlib.h", | 40 "zlib.h", |
| 51 "zutil.c", | 41 "zutil.c", |
| 52 "zutil.h", | 42 "zutil.h", |
| 53 ] | 43 ] |
| 54 | 44 |
| 55 if (cpu_arch == "x86" || cpu_arch == "x64") { | |
| 56 sources += [ "x86.c" ] | |
| 57 } | |
| 58 | |
| 59 configs -= [ "//build/config/compiler:chromium_code" ] | 45 configs -= [ "//build/config/compiler:chromium_code" ] |
| 60 configs += [ "//build/config/compiler:no_chromium_code" ] | 46 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 61 | 47 |
| 62 public_configs = [ ":zlib_config" ] | 48 public_configs = [ ":zlib_config" ] |
| 63 deps = [ ":zlib_x86_simd" ] | |
| 64 } | 49 } |
| 65 | 50 |
| 66 static_library("minizip") { | 51 static_library("minizip") { |
| 67 sources = [ | 52 sources = [ |
| 68 "contrib/minizip/ioapi.c", | 53 "contrib/minizip/ioapi.c", |
| 69 "contrib/minizip/ioapi.h", | 54 "contrib/minizip/ioapi.h", |
| 70 "contrib/minizip/iowin32.c", | 55 "contrib/minizip/iowin32.c", |
| 71 "contrib/minizip/iowin32.h", | 56 "contrib/minizip/iowin32.h", |
| 72 "contrib/minizip/unzip.c", | 57 "contrib/minizip/unzip.c", |
| 73 "contrib/minizip/unzip.h", | 58 "contrib/minizip/unzip.h", |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 "google/zip_internal.cc", | 91 "google/zip_internal.cc", |
| 107 "google/zip_internal.h", | 92 "google/zip_internal.h", |
| 108 "google/zip_reader.cc", | 93 "google/zip_reader.cc", |
| 109 "google/zip_reader.h", | 94 "google/zip_reader.h", |
| 110 ] | 95 ] |
| 111 deps = [ | 96 deps = [ |
| 112 ":minizip", | 97 ":minizip", |
| 113 "//base", | 98 "//base", |
| 114 ] | 99 ] |
| 115 } | 100 } |
| OLD | NEW |