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 | 8 |
8 gypi_values = exec_script("//build/gypi_to_gn.py", | 9 gypi_values = exec_script("//build/gypi_to_gn.py", |
9 [ rebase_path("../chrome_utility.gypi") ], | 10 [ rebase_path("../chrome_utility.gypi") ], |
10 "scope", | 11 "scope", |
11 [ "../chrome_utility.gypi" ]) | 12 [ "../chrome_utility.gypi" ]) |
12 | 13 |
| 14 # Provides a way for the utility library to push ldflags to dependents. |
| 15 config("utility_ldflags") { |
| 16 if (is_mac && safe_browsing_mode == 1) { |
| 17 ldflags = [ "/usr/lib/libbz2.dylib" ] |
| 18 } |
| 19 } |
| 20 |
13 static_library("utility") { | 21 static_library("utility") { |
14 sources = rebase_path(gypi_values.chrome_utility_sources, ".", "..") | 22 sources = rebase_path(gypi_values.chrome_utility_sources, ".", "..") |
15 defines = [] | 23 defines = [] |
16 configs += [ "//build/config:precompiled_headers" ] | 24 configs += [ "//build/config:precompiled_headers" ] |
| 25 all_dependent_configs = [ ":utility_ldflags" ] |
17 | 26 |
18 public_deps = [] | 27 public_deps = [] |
19 deps = [ | 28 deps = [ |
20 "//base", | 29 "//base", |
21 "//components/safe_json:safe_json_parser_message_filter", | 30 "//components/safe_json:safe_json_parser_message_filter", |
22 "//components/search_engines", | 31 "//components/search_engines", |
23 "//components/strings", | 32 "//components/strings", |
24 "//components/url_formatter", | 33 "//components/url_formatter", |
25 "//content/public/common", | 34 "//content/public/common", |
26 "//content/public/utility", | 35 "//content/public/utility", |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 "local_discovery/service_discovery_message_handler.cc", | 115 "local_discovery/service_discovery_message_handler.cc", |
107 "local_discovery/service_discovery_message_handler.h", | 116 "local_discovery/service_discovery_message_handler.h", |
108 ] | 117 ] |
109 } | 118 } |
110 | 119 |
111 if (safe_browsing_mode == 1) { | 120 if (safe_browsing_mode == 1) { |
112 sources += | 121 sources += |
113 rebase_path(gypi_values.chrome_utility_safe_browsing_sources, ".", "..") | 122 rebase_path(gypi_values.chrome_utility_safe_browsing_sources, ".", "..") |
114 } | 123 } |
115 } | 124 } |
OLD | NEW |