| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import("//build/config/crypto.gni") | 5 import("//build/config/crypto.gni") |
| 6 import("//build/config/features.gni") | 6 import("//build/config/features.gni") |
| 7 import("//build/config/sysroot.gni") | 7 import("//build/config/sysroot.gni") |
| 8 | 8 |
| 9 gypi_values = exec_script("//build/gypi_to_gn.py", | 9 gypi_values = exec_script("//build/gypi_to_gn.py", |
| 10 [ rebase_path("../chrome_utility.gypi") ], | 10 [ rebase_path("../chrome_utility.gypi") ], |
| 11 "scope", | 11 "scope", |
| 12 [ "../chrome_utility.gypi" ]) | 12 [ "../chrome_utility.gypi" ]) |
| 13 | 13 |
| 14 # Provides a way for the utility library to push ldflags to dependents. | 14 # Provides a way for the utility library to push ldflags to dependents. |
| 15 config("utility_ldflags") { | 15 config("utility_ldflags") { |
| 16 if (is_mac && safe_browsing_mode == 1) { | 16 if (is_mac && safe_browsing_mode == 1) { |
| 17 libs = [ "bz2" ] | 17 libs = [ "bz2" ] |
| 18 } | 18 } |
| 19 } | 19 } |
| 20 | 20 |
| 21 static_library("utility") { | 21 static_library("utility") { |
| 22 sources = rebase_path(gypi_values.chrome_utility_sources, ".", "..") | 22 sources = rebase_path(gypi_values.chrome_utility_sources, ".", "..") |
| 23 defines = [] | 23 defines = [] |
| 24 configs += [ "//build/config:precompiled_headers" ] | 24 configs += [ |
| 25 "//build/config:precompiled_headers", |
| 26 "//build/config/compiler:wexit_time_destructors", |
| 27 ] |
| 25 all_dependent_configs = [ ":utility_ldflags" ] | 28 all_dependent_configs = [ ":utility_ldflags" ] |
| 26 | 29 |
| 27 public_deps = [] | 30 public_deps = [] |
| 28 deps = [ | 31 deps = [ |
| 29 "//base", | 32 "//base", |
| 30 "//chrome:resources", | 33 "//chrome:resources", |
| 31 "//chrome:strings", | 34 "//chrome:strings", |
| 32 "//chrome/common", | 35 "//chrome/common", |
| 33 "//chrome/common:mojo_bindings", | 36 "//chrome/common:mojo_bindings", |
| 34 "//components/safe_json/utility", | 37 "//components/safe_json/utility", |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 ] | 134 ] |
| 132 | 135 |
| 133 additional_configs = [ ":utility_ldflags" ] | 136 additional_configs = [ ":utility_ldflags" ] |
| 134 | 137 |
| 135 deps = [ | 138 deps = [ |
| 136 "//base", | 139 "//base", |
| 137 "//third_party/zlib", | 140 "//third_party/zlib", |
| 138 ] | 141 ] |
| 139 } | 142 } |
| 140 } | 143 } |
| OLD | NEW |