| 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("//tools/grit/grit_rule.gni") | 5 import("//tools/grit/grit_rule.gni") |
| 6 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") | 6 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") |
| 7 import("//chrome/version.gni") | 7 import("//chrome/version.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_common.gypi") ], | 10 [ rebase_path("../chrome_common.gypi") ], |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 "//skia", | 80 "//skia", |
| 81 "//third_party/icu", | 81 "//third_party/icu", |
| 82 "//third_party/zlib:zip", | 82 "//third_party/zlib:zip", |
| 83 "//ui/resources:resources", | 83 "//ui/resources:resources", |
| 84 "//url", | 84 "//url", |
| 85 ] | 85 ] |
| 86 | 86 |
| 87 if (is_ios) { | 87 if (is_ios) { |
| 88 sources += [ | 88 sources += [ |
| 89 # Use this Mac file that was filtered out. | 89 # Use this Mac file that was filtered out. |
| 90 "chrome_version_info_mac.mm", | 90 "channel_info_mac.mm", |
| 91 ] | 91 ] |
| 92 sources -= [ | 92 sources -= [ |
| 93 "resource_usage_reporter_type_converters.cc", | 93 "resource_usage_reporter_type_converters.cc", |
| 94 "resource_usage_reporter_type_converters.h", | 94 "resource_usage_reporter_type_converters.h", |
| 95 ] | 95 ] |
| 96 } else { | 96 } else { |
| 97 # Non-iOS. | 97 # Non-iOS. |
| 98 deps += [ | 98 deps += [ |
| 99 ":mojo_bindings", | 99 ":mojo_bindings", |
| 100 "//components/visitedlink/common", | 100 "//components/visitedlink/common", |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 if (enable_mdns) { | 186 if (enable_mdns) { |
| 187 sources += [ | 187 sources += [ |
| 188 "local_discovery/service_discovery_client_impl.cc", | 188 "local_discovery/service_discovery_client_impl.cc", |
| 189 "local_discovery/service_discovery_client_impl.h", | 189 "local_discovery/service_discovery_client_impl.h", |
| 190 ] | 190 ] |
| 191 } | 191 } |
| 192 | 192 |
| 193 if (is_android) { | 193 if (is_android) { |
| 194 sources -= [ | 194 sources -= [ |
| 195 "badge_util.cc", | 195 "badge_util.cc", |
| 196 "chrome_version_info_posix.cc", | 196 "channel_info_posix.cc", |
| 197 "icon_with_badge_image_source.cc", | 197 "icon_with_badge_image_source.cc", |
| 198 "media_galleries/metadata_types.h", | 198 "media_galleries/metadata_types.h", |
| 199 ] | 199 ] |
| 200 } else { | 200 } else { |
| 201 # Non-Android. | 201 # Non-Android. |
| 202 sources += | 202 sources += |
| 203 rebase_path(gypi_values.chrome_common_importer_sources, ".", "//chrome") | 203 rebase_path(gypi_values.chrome_common_importer_sources, ".", "//chrome") |
| 204 } | 204 } |
| 205 | 205 |
| 206 if (is_chromeos) { | 206 if (is_chromeos) { |
| 207 sources -= [ "chrome_version_info_posix.cc" ] | 207 sources -= [ "channel_info_posix.cc" ] |
| 208 } | 208 } |
| 209 | 209 |
| 210 if (is_win) { | 210 if (is_win) { |
| 211 deps += [ | 211 deps += [ |
| 212 "//components/dom_distiller/core", # Needed by chrome_content_client.cc. | 212 "//components/dom_distiller/core", # Needed by chrome_content_client.cc. |
| 213 "//third_party/wtl", | 213 "//third_party/wtl", |
| 214 ] | 214 ] |
| 215 } | 215 } |
| 216 | 216 |
| 217 if (enable_mdns) { | 217 if (enable_mdns) { |
| 218 sources += [ "local_discovery/local_discovery_messages.h" ] | 218 sources += [ "local_discovery/local_discovery_messages.h" ] |
| 219 } | 219 } |
| 220 | 220 |
| 221 if (is_mac) { | 221 if (is_mac) { |
| 222 sources -= [ "chrome_version_info_posix.cc" ] | 222 sources -= [ "channel_info_posix.cc" ] |
| 223 deps += [ | 223 deps += [ |
| 224 "//third_party/mach_override", | 224 "//third_party/mach_override", |
| 225 "//third_party/google_toolbox_for_mac", | 225 "//third_party/google_toolbox_for_mac", |
| 226 ] | 226 ] |
| 227 } | 227 } |
| 228 | 228 |
| 229 if (enable_plugins) { | 229 if (enable_plugins) { |
| 230 sources += [ | 230 sources += [ |
| 231 "pepper_flash.cc", | 231 "pepper_flash.cc", |
| 232 "pepper_flash.h", | 232 "pepper_flash.h", |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 ":constants", | 353 ":constants", |
| 354 "//base", | 354 "//base", |
| 355 ] | 355 ] |
| 356 } | 356 } |
| 357 | 357 |
| 358 mojom("mojo_bindings") { | 358 mojom("mojo_bindings") { |
| 359 sources = [ | 359 sources = [ |
| 360 "resource_usage_reporter.mojom", | 360 "resource_usage_reporter.mojom", |
| 361 ] | 361 ] |
| 362 } | 362 } |
| OLD | NEW |