| 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 external = true | 10 external = true |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 "mozzconf.h", | 37 "mozzconf.h", |
| 38 "trees.c", | 38 "trees.c", |
| 39 "trees.h", | 39 "trees.h", |
| 40 "uncompr.c", | 40 "uncompr.c", |
| 41 "zconf.h", | 41 "zconf.h", |
| 42 "zlib.h", | 42 "zlib.h", |
| 43 "zutil.c", | 43 "zutil.c", |
| 44 "zutil.h", | 44 "zutil.h", |
| 45 ] | 45 ] |
| 46 | 46 |
| 47 configs -= "//build/config/compiler:chromium_code" | 47 configs -= [ "//build/config/compiler:chromium_code" ] |
| 48 configs += "//build/config/compiler:no_chromium_code" | 48 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 49 | 49 |
| 50 direct_dependent_configs = [ ":zlib_config" ] | 50 direct_dependent_configs = [ ":zlib_config" ] |
| 51 } | 51 } |
| 52 | 52 |
| 53 static_library("minizip") { | 53 static_library("minizip") { |
| 54 external = true | 54 external = true |
| 55 sources = [ | 55 sources = [ |
| 56 "contrib/minizip/ioapi.c", | 56 "contrib/minizip/ioapi.c", |
| 57 "contrib/minizip/ioapi.h", | 57 "contrib/minizip/ioapi.h", |
| 58 "contrib/minizip/iowin32.c", | 58 "contrib/minizip/iowin32.c", |
| (...skipping 15 matching lines...) Expand all Loading... |
| 74 defines = [ "USE_FILE32API" ] | 74 defines = [ "USE_FILE32API" ] |
| 75 } | 75 } |
| 76 | 76 |
| 77 if (is_clang) { | 77 if (is_clang) { |
| 78 # zlib uses `if ((a == b))` for some reason. | 78 # zlib uses `if ((a == b))` for some reason. |
| 79 cflags = [ "-Wno-parentheses-equality" ] | 79 cflags = [ "-Wno-parentheses-equality" ] |
| 80 } | 80 } |
| 81 | 81 |
| 82 deps = [ ":zlib" ] | 82 deps = [ ":zlib" ] |
| 83 | 83 |
| 84 configs -= "//build/config/compiler:chromium_code" | 84 configs -= [ "//build/config/compiler:chromium_code" ] |
| 85 configs += "//build/config/compiler:no_chromium_code" | 85 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 86 direct_dependent_configs = [ ":zlib_config" ] | 86 direct_dependent_configs = [ ":zlib_config" ] |
| 87 } | 87 } |
| 88 | 88 |
| 89 static_library("zip") { | 89 static_library("zip") { |
| 90 external = true | 90 external = true |
| 91 sources = [ | 91 sources = [ |
| 92 "google/zip.cc", | 92 "google/zip.cc", |
| 93 "google/zip.h", | 93 "google/zip.h", |
| 94 "google/zip_internal.cc", | 94 "google/zip_internal.cc", |
| 95 "google/zip_internal.h", | 95 "google/zip_internal.h", |
| 96 "google/zip_reader.cc", | 96 "google/zip_reader.cc", |
| 97 "google/zip_reader.h", | 97 "google/zip_reader.h", |
| 98 ] | 98 ] |
| 99 deps = [ | 99 deps = [ |
| 100 ":minizip", | 100 ":minizip", |
| 101 "//base", | 101 "//base", |
| 102 ] | 102 ] |
| 103 } | 103 } |
| OLD | NEW |