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") { | 9 static_library("zlib") { |
10 if (!is_win) { | 10 if (!is_win) { |
(...skipping 24 matching lines...) Expand all Loading... | |
35 "mozzconf.h", | 35 "mozzconf.h", |
36 "trees.c", | 36 "trees.c", |
37 "trees.h", | 37 "trees.h", |
38 "uncompr.c", | 38 "uncompr.c", |
39 "zconf.h", | 39 "zconf.h", |
40 "zlib.h", | 40 "zlib.h", |
41 "zutil.c", | 41 "zutil.c", |
42 "zutil.h", | 42 "zutil.h", |
43 ] | 43 ] |
44 | 44 |
45 if (is_linux && (cpu_arch == "x86" || cpu_arch == "x64")) { | |
46 sources += [ "crc_folding.c", | |
47 "fill_window_sse.c", | |
48 "x86.c", | |
49 "x86.h" ] | |
50 defines = [ "HAVE_SSE2", | |
51 "CHECK_SSE2", | |
52 "USE_SSE4_2_CRC_HASH", | |
53 "HAVE_PCLMULQDQ" ] | |
54 cflags = ["-msse2", "-msse4.2", "-mpclmul"] | |
agl
2014/09/23 21:41:39
These compiler flags allow the compiler to use the
| |
55 } | |
56 | |
45 configs -= [ "//build/config/compiler:chromium_code" ] | 57 configs -= [ "//build/config/compiler:chromium_code" ] |
46 configs += [ "//build/config/compiler:no_chromium_code" ] | 58 configs += [ "//build/config/compiler:no_chromium_code" ] |
47 | 59 |
48 direct_dependent_configs = [ ":zlib_config" ] | 60 direct_dependent_configs = [ ":zlib_config" ] |
49 } | 61 } |
50 | 62 |
51 static_library("minizip") { | 63 static_library("minizip") { |
52 sources = [ | 64 sources = [ |
53 "contrib/minizip/ioapi.c", | 65 "contrib/minizip/ioapi.c", |
54 "contrib/minizip/ioapi.h", | 66 "contrib/minizip/ioapi.h", |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
91 "google/zip_internal.cc", | 103 "google/zip_internal.cc", |
92 "google/zip_internal.h", | 104 "google/zip_internal.h", |
93 "google/zip_reader.cc", | 105 "google/zip_reader.cc", |
94 "google/zip_reader.h", | 106 "google/zip_reader.h", |
95 ] | 107 ] |
96 deps = [ | 108 deps = [ |
97 ":minizip", | 109 ":minizip", |
98 "//base", | 110 "//base", |
99 ] | 111 ] |
100 } | 112 } |
OLD | NEW |