Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
| 6 import("//headless/headless.gni") | 6 import("//headless/headless.gni") |
| 7 import("//build/util/process_version.gni") | 7 import("//build/util/process_version.gni") |
| 8 import("//mojo/public/tools/bindings/mojom.gni") | 8 import("//mojo/public/tools/bindings/mojom.gni") |
| 9 import("//printing/features/features.gni") | 9 import("//printing/features/features.gni") |
| 10 import("//testing/test.gni") | 10 import("//testing/test.gni") |
| (...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 467 "public/headless_shell.h", | 467 "public/headless_shell.h", |
| 468 ] | 468 ] |
| 469 | 469 |
| 470 deps = [ | 470 deps = [ |
| 471 "//headless:headless_lib", | 471 "//headless:headless_lib", |
| 472 ] | 472 ] |
| 473 | 473 |
| 474 configs += [ ":headless_implementation" ] | 474 configs += [ ":headless_implementation" ] |
| 475 } | 475 } |
| 476 | 476 |
| 477 if (is_mac) { | |
| 478 copy("mac_helpers") { | |
| 479 deps = [ | |
| 480 "//third_party/crashpad/crashpad/handler:crashpad_handler", | |
| 481 ] | |
| 482 | |
| 483 sources = [ | |
| 484 "$root_out_dir/crashpad_handler", | |
| 485 ] | |
|
jzfeng
2017/04/12 06:22:04
nit: put sources and outputs above deps?
dvallet
2017/04/12 07:04:09
Done.
| |
| 486 | |
| 487 outputs = [ | |
| 488 "$root_out_dir/Helpers/{{source_file_part}}", | |
| 489 ] | |
| 490 } | |
| 491 } | |
| 492 | |
| 477 executable("headless_shell") { | 493 executable("headless_shell") { |
| 478 sources = [ | 494 sources = [ |
| 479 "app/headless_shell_main.cc", | 495 "app/headless_shell_main.cc", |
| 480 ] | 496 ] |
| 481 | 497 |
| 482 deps = [ | 498 deps = [ |
| 483 "//headless:headless_shell_lib", | 499 "//headless:headless_shell_lib", |
| 484 ] | 500 ] |
| 485 | 501 |
| 486 if (is_win) { | 502 if (is_win) { |
| 487 deps += [ | 503 deps += [ |
| 488 "//build/win:default_exe_manifest", | 504 "//build/win:default_exe_manifest", |
| 489 "//content:sandbox_helper_win", | 505 "//content:sandbox_helper_win", |
| 490 "//sandbox", | 506 "//sandbox", |
| 491 ] | 507 ] |
| 492 } | 508 } |
| 493 | 509 |
| 510 if (is_mac) { | |
| 511 deps += [ ":mac_helpers" ] | |
| 512 } | |
| 513 | |
| 494 configs += [ ":headless_implementation" ] | 514 configs += [ ":headless_implementation" ] |
| 495 } | 515 } |
| 496 | 516 |
| 497 process_version("version_header") { | 517 process_version("version_header") { |
| 498 template_file = "public/version.h.in" | 518 template_file = "public/version.h.in" |
| 499 sources = [ | 519 sources = [ |
| 500 "//build/util/LASTCHANGE", | 520 "//build/util/LASTCHANGE", |
| 501 "//chrome/VERSION", | 521 "//chrome/VERSION", |
| 502 ] | 522 ] |
| 503 output = "$target_gen_dir/public/version.h" | 523 output = "$target_gen_dir/public/version.h" |
| 504 } | 524 } |
| 505 | 525 |
| 506 executable("headless_example") { | 526 executable("headless_example") { |
| 507 sources = [ | 527 sources = [ |
| 508 "app/headless_example.cc", | 528 "app/headless_example.cc", |
| 509 ] | 529 ] |
| 510 | 530 |
| 511 deps = [ | 531 deps = [ |
| 512 "//headless:headless_shell_lib", | 532 "//headless:headless_shell_lib", |
| 513 ] | 533 ] |
| 514 } | 534 } |
| OLD | NEW |