| 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/buildflag_header.gni") | 5 import("//build/buildflag_header.gni") |
| 6 import("//chrome/common/features.gni") | 6 import("//chrome/common/features.gni") |
| 7 import("//chrome/version.gni") | 7 import("//chrome/version.gni") |
| 8 import("//mojo/public/tools/bindings/mojom.gni") | 8 import("//mojo/public/tools/bindings/mojom.gni") |
| 9 import("//tools/grit/grit_rule.gni") | 9 import("//tools/grit/grit_rule.gni") |
| 10 import("//tools/ipc_fuzzer/ipc_fuzzer.gni") |
| 10 | 11 |
| 11 gypi_values = exec_script("//build/gypi_to_gn.py", | 12 gypi_values = exec_script("//build/gypi_to_gn.py", |
| 12 [ rebase_path("../chrome_common.gypi") ], | 13 [ rebase_path("../chrome_common.gypi") ], |
| 13 "scope", | 14 "scope", |
| 14 [ "../chrome_common.gypi" ]) | 15 [ "../chrome_common.gypi" ]) |
| 15 | 16 |
| 16 # GYP version: chrome/chrome_resources.gyp:chrome_resources | 17 # GYP version: chrome/chrome_resources.gyp:chrome_resources |
| 17 # (generate_common_resources action) | 18 # (generate_common_resources action) |
| 18 grit("resources") { | 19 grit("resources") { |
| 19 source = "common_resources.grd" | 20 source = "common_resources.grd" |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 } | 275 } |
| 275 if (!enable_webrtc) { | 276 if (!enable_webrtc) { |
| 276 sources -= [ "media/webrtc_logging_messages.h" ] | 277 sources -= [ "media/webrtc_logging_messages.h" ] |
| 277 } | 278 } |
| 278 | 279 |
| 279 if (safe_browsing_mode == 1) { | 280 if (safe_browsing_mode == 1) { |
| 280 sources += rebase_path(gypi_values.chrome_common_full_safe_browsing_sources, | 281 sources += rebase_path(gypi_values.chrome_common_full_safe_browsing_sources, |
| 281 ".", | 282 ".", |
| 282 "//chrome") | 283 "//chrome") |
| 283 } | 284 } |
| 285 |
| 286 if (enable_ipc_fuzzer) { |
| 287 configs += [ "//tools/ipc_fuzzer:ipc_fuzzer_config" ] |
| 288 sources += [ |
| 289 "external_ipc_dumper.cc", |
| 290 "external_ipc_dumper.h", |
| 291 ] |
| 292 } |
| 284 } | 293 } |
| 285 | 294 |
| 286 # GYP version: chrome/common_constants.gyp:version_header | 295 # GYP version: chrome/common_constants.gyp:version_header |
| 287 process_version("version_header") { | 296 process_version("version_header") { |
| 288 # TODO(brettw) this should have more reduced visibility, but chrome/browser | 297 # TODO(brettw) this should have more reduced visibility, but chrome/browser |
| 289 # currently depends on this. | 298 # currently depends on this. |
| 290 #visibility = [ ":*" ] | 299 #visibility = [ ":*" ] |
| 291 | 300 |
| 292 # This one just uses the custom template and no separate sources. | 301 # This one just uses the custom template and no separate sources. |
| 293 sources = [] | 302 sources = [] |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 # On Windows, //chrome/installer/util depends on this target to get | 351 # On Windows, //chrome/installer/util depends on this target to get |
| 343 # constants. That target is in turn used in a number of installer helper | 352 # constants. That target is in turn used in a number of installer helper |
| 344 # targets independent of Chrome that we want to keep small. So we don't | 353 # targets independent of Chrome that we want to keep small. So we don't |
| 345 # want something large like //ui/base. | 354 # want something large like //ui/base. |
| 346 # | 355 # |
| 347 # Android doesn't have this structure and corresponding size limitation | 356 # Android doesn't have this structure and corresponding size limitation |
| 348 # on this target. On that platform one of the Chrome paths forwards to one | 357 # on this target. On that platform one of the Chrome paths forwards to one |
| 349 # implemented in //ui/base, so we need that dependency. | 358 # implemented in //ui/base, so we need that dependency. |
| 350 deps += [ "//ui/base" ] | 359 deps += [ "//ui/base" ] |
| 351 } | 360 } |
| 361 |
| 362 if (enable_ipc_fuzzer) { |
| 363 configs += [ "//tools/ipc_fuzzer:ipc_fuzzer_config" ] |
| 364 } |
| 352 } | 365 } |
| 353 | 366 |
| 354 if (is_win) { | 367 if (is_win) { |
| 355 # GYP version: chrome/chrome_common.gypi:metrics_constants_util_win | 368 # GYP version: chrome/chrome_common.gypi:metrics_constants_util_win |
| 356 source_set("metrics_constants_util_win") { | 369 source_set("metrics_constants_util_win") { |
| 357 sources = [ | 370 sources = [ |
| 358 "metrics_constants_util_win.cc", | 371 "metrics_constants_util_win.cc", |
| 359 "metrics_constants_util_win.h", | 372 "metrics_constants_util_win.h", |
| 360 ] | 373 ] |
| 361 | 374 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 mojom("mojo_bindings") { | 428 mojom("mojo_bindings") { |
| 416 sources = [ | 429 sources = [ |
| 417 "image_decoder.mojom", | 430 "image_decoder.mojom", |
| 418 "resource_usage_reporter.mojom", | 431 "resource_usage_reporter.mojom", |
| 419 ] | 432 ] |
| 420 | 433 |
| 421 public_deps = [ | 434 public_deps = [ |
| 422 "//skia/public/interfaces", | 435 "//skia/public/interfaces", |
| 423 ] | 436 ] |
| 424 } | 437 } |
| OLD | NEW |