| 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     ldflags = [ "/usr/lib/libbz2.dylib" ] | 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 += [ "//build/config:precompiled_headers" ] | 
| 25   all_dependent_configs = [ ":utility_ldflags" ] | 25   all_dependent_configs = [ ":utility_ldflags" ] | 
| 26 | 26 | 
| 27   public_deps = [] | 27   public_deps = [] | 
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 110   if (safe_browsing_mode == 1) { | 110   if (safe_browsing_mode == 1) { | 
| 111     sources += | 111     sources += | 
| 112         rebase_path(gypi_values.chrome_utility_safe_browsing_sources, ".", "..") | 112         rebase_path(gypi_values.chrome_utility_safe_browsing_sources, ".", "..") | 
| 113     deps += [ "//third_party/zlib" ] | 113     deps += [ "//third_party/zlib" ] | 
| 114   } | 114   } | 
| 115 | 115 | 
| 116   if (enable_pdf) { | 116   if (enable_pdf) { | 
| 117     deps += [ "//pdf" ] | 117     deps += [ "//pdf" ] | 
| 118   } | 118   } | 
| 119 } | 119 } | 
| OLD | NEW | 
|---|