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") | |
11 | 10 |
12 gypi_values = exec_script("//build/gypi_to_gn.py", | 11 gypi_values = exec_script("//build/gypi_to_gn.py", |
13 [ rebase_path("../chrome_common.gypi") ], | 12 [ rebase_path("../chrome_common.gypi") ], |
14 "scope", | 13 "scope", |
15 [ "../chrome_common.gypi" ]) | 14 [ "../chrome_common.gypi" ]) |
16 | 15 |
17 # GYP version: chrome/chrome_resources.gyp:chrome_resources | 16 # GYP version: chrome/chrome_resources.gyp:chrome_resources |
18 # (generate_common_resources action) | 17 # (generate_common_resources action) |
19 grit("resources") { | 18 grit("resources") { |
20 source = "common_resources.grd" | 19 source = "common_resources.grd" |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 ".", | 286 ".", |
288 "//chrome") | 287 "//chrome") |
289 | 288 |
290 if (safe_browsing_mode == 1) { | 289 if (safe_browsing_mode == 1) { |
291 sources += | 290 sources += |
292 rebase_path(gypi_values.chrome_common_full_safe_browsing_sources, | 291 rebase_path(gypi_values.chrome_common_full_safe_browsing_sources, |
293 ".", | 292 ".", |
294 "//chrome") | 293 "//chrome") |
295 } | 294 } |
296 } | 295 } |
297 | |
298 if (enable_ipc_fuzzer) { | |
299 configs += [ "//tools/ipc_fuzzer:ipc_fuzzer_config" ] | |
300 sources += [ | |
301 "external_ipc_dumper.cc", | |
302 "external_ipc_dumper.h", | |
303 ] | |
304 } | |
305 } | 296 } |
306 | 297 |
307 # GYP version: chrome/common_constants.gyp:version_header | 298 # GYP version: chrome/common_constants.gyp:version_header |
308 process_version("version_header") { | 299 process_version("version_header") { |
309 # TODO(brettw) this should have more reduced visibility, but chrome/browser | 300 # TODO(brettw) this should have more reduced visibility, but chrome/browser |
310 # currently depends on this. | 301 # currently depends on this. |
311 #visibility = [ ":*" ] | 302 #visibility = [ ":*" ] |
312 | 303 |
313 # This one just uses the custom template and no separate sources. | 304 # This one just uses the custom template and no separate sources. |
314 sources = [] | 305 sources = [] |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 # On Windows, //chrome/installer/util depends on this target to get | 355 # On Windows, //chrome/installer/util depends on this target to get |
365 # constants. That target is in turn used in a number of installer helper | 356 # constants. That target is in turn used in a number of installer helper |
366 # targets independent of Chrome that we want to keep small. So we don't | 357 # targets independent of Chrome that we want to keep small. So we don't |
367 # want something large like //ui/base. | 358 # want something large like //ui/base. |
368 # | 359 # |
369 # Android doesn't have this structure and corresponding size limitation | 360 # Android doesn't have this structure and corresponding size limitation |
370 # on this target. On that platform one of the Chrome paths forwards to one | 361 # on this target. On that platform one of the Chrome paths forwards to one |
371 # implemented in //ui/base, so we need that dependency. | 362 # implemented in //ui/base, so we need that dependency. |
372 deps += [ "//ui/base" ] | 363 deps += [ "//ui/base" ] |
373 } | 364 } |
374 | |
375 if (enable_ipc_fuzzer) { | |
376 configs += [ "//tools/ipc_fuzzer:ipc_fuzzer_config" ] | |
377 } | |
378 } | 365 } |
379 | 366 |
380 if (is_win) { | 367 if (is_win) { |
381 # GYP version: chrome/chrome_common.gypi:metrics_constants_util_win | 368 # GYP version: chrome/chrome_common.gypi:metrics_constants_util_win |
382 source_set("metrics_constants_util_win") { | 369 source_set("metrics_constants_util_win") { |
383 sources = [ | 370 sources = [ |
384 "metrics_constants_util_win.cc", | 371 "metrics_constants_util_win.cc", |
385 "metrics_constants_util_win.h", | 372 "metrics_constants_util_win.h", |
386 ] | 373 ] |
387 | 374 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 mojom("mojo_bindings") { | 428 mojom("mojo_bindings") { |
442 sources = [ | 429 sources = [ |
443 "image_decoder.mojom", | 430 "image_decoder.mojom", |
444 "resource_usage_reporter.mojom", | 431 "resource_usage_reporter.mojom", |
445 ] | 432 ] |
446 | 433 |
447 public_deps = [ | 434 public_deps = [ |
448 "//skia/public/interfaces", | 435 "//skia/public/interfaces", |
449 ] | 436 ] |
450 } | 437 } |
OLD | NEW |