| 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 ldflags = [ "/usr/lib/libbz2.dylib" ] |
| 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 = [] |
| 28 deps = [ | 28 deps = [ |
| 29 "//base", | 29 "//base", |
| 30 "//chrome:resources", |
| 31 "//chrome:strings", |
| 32 "//chrome/common", |
| 30 "//components/safe_json:safe_json_parser_message_filter", | 33 "//components/safe_json:safe_json_parser_message_filter", |
| 31 "//components/search_engines", | 34 "//components/search_engines", |
| 32 "//components/strings", | 35 "//components/strings", |
| 33 "//components/url_formatter", | 36 "//components/url_formatter", |
| 34 "//content/public/common", | 37 "//content/public/common", |
| 35 "//content/public/utility", | 38 "//content/public/utility", |
| 36 "//media", | 39 "//media", |
| 37 "//skia", | 40 "//skia", |
| 38 "//third_party/libxml", | 41 "//third_party/libxml", |
| 39 "//chrome:resources", | |
| 40 "//chrome:strings", | |
| 41 "//chrome/common", | |
| 42 ] | 42 ] |
| 43 | 43 |
| 44 if (!is_android) { | 44 if (!is_android) { |
| 45 deps += [ | 45 deps += [ |
| 46 "//chrome/common:mojo_bindings", | 46 "//chrome/common:mojo_bindings", |
| 47 "//net:net_utility_services", | 47 "//net:net_utility_services", |
| 48 ] | 48 ] |
| 49 sources += | 49 sources += |
| 50 rebase_path(gypi_values.chrome_utility_importer_sources, ".", "..") | 50 rebase_path(gypi_values.chrome_utility_importer_sources, ".", "..") |
| 51 } | 51 } |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 "local_discovery/service_discovery_message_handler.cc", | 115 "local_discovery/service_discovery_message_handler.cc", |
| 116 "local_discovery/service_discovery_message_handler.h", | 116 "local_discovery/service_discovery_message_handler.h", |
| 117 ] | 117 ] |
| 118 } | 118 } |
| 119 | 119 |
| 120 if (safe_browsing_mode == 1) { | 120 if (safe_browsing_mode == 1) { |
| 121 sources += | 121 sources += |
| 122 rebase_path(gypi_values.chrome_utility_safe_browsing_sources, ".", "..") | 122 rebase_path(gypi_values.chrome_utility_safe_browsing_sources, ".", "..") |
| 123 } | 123 } |
| 124 } | 124 } |
| OLD | NEW |