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 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 | 447 |
448 deps = [ | 448 deps = [ |
449 ":embedder_mojo_for_testing", | 449 ":embedder_mojo_for_testing", |
450 ":headless_browser_tests_pak", | 450 ":headless_browser_tests_pak", |
451 "//base", | 451 "//base", |
452 "//content/test:test_support", | 452 "//content/test:test_support", |
453 "//headless:headless_lib", | 453 "//headless:headless_lib", |
454 "//testing/gmock", | 454 "//testing/gmock", |
455 "//testing/gtest", | 455 "//testing/gtest", |
456 ] | 456 ] |
457 | |
458 if (is_mac) { | |
459 deps += [ ":mac_helpers" ] | |
460 } | |
461 } | 457 } |
462 | 458 |
463 static_library("headless_shell_lib") { | 459 static_library("headless_shell_lib") { |
464 sources = [ | 460 sources = [ |
465 "app/headless_shell.cc", | 461 "app/headless_shell.cc", |
466 "app/headless_shell.h", | 462 "app/headless_shell.h", |
467 "app/headless_shell_switches.cc", | 463 "app/headless_shell_switches.cc", |
468 "app/headless_shell_switches.h", | 464 "app/headless_shell_switches.h", |
469 "app/shell_navigation_request.cc", | 465 "app/shell_navigation_request.cc", |
470 "app/shell_navigation_request.h", | 466 "app/shell_navigation_request.h", |
471 "public/headless_shell.h", | 467 "public/headless_shell.h", |
472 ] | 468 ] |
473 | 469 |
474 deps = [ | 470 deps = [ |
475 "//headless:headless_lib", | 471 "//headless:headless_lib", |
476 ] | 472 ] |
477 | 473 |
478 configs += [ ":headless_implementation" ] | 474 configs += [ ":headless_implementation" ] |
479 } | 475 } |
480 | 476 |
481 if (is_mac) { | |
482 copy("mac_helpers") { | |
483 sources = [ | |
484 "$root_out_dir/crashpad_handler", | |
485 ] | |
486 | |
487 deps = [ | |
488 "//third_party/crashpad/crashpad/handler:crashpad_handler", | |
489 ] | |
490 | |
491 outputs = [ | |
492 "$root_out_dir/Helpers/{{source_file_part}}", | |
493 ] | |
494 } | |
495 } | |
496 | |
497 executable("headless_shell") { | 477 executable("headless_shell") { |
498 sources = [ | 478 sources = [ |
499 "app/headless_shell_main.cc", | 479 "app/headless_shell_main.cc", |
500 ] | 480 ] |
501 | 481 |
502 deps = [ | 482 deps = [ |
503 "//headless:headless_shell_lib", | 483 "//headless:headless_shell_lib", |
504 ] | 484 ] |
505 | 485 |
506 if (is_win) { | 486 if (is_win) { |
507 deps += [ | 487 deps += [ |
508 "//build/win:default_exe_manifest", | 488 "//build/win:default_exe_manifest", |
509 "//content:sandbox_helper_win", | 489 "//content:sandbox_helper_win", |
510 "//sandbox", | 490 "//sandbox", |
511 ] | 491 ] |
512 } | 492 } |
513 | 493 |
514 if (is_mac) { | |
515 deps += [ ":mac_helpers" ] | |
516 } | |
517 | |
518 configs += [ ":headless_implementation" ] | 494 configs += [ ":headless_implementation" ] |
519 } | 495 } |
520 | 496 |
521 process_version("version_header") { | 497 process_version("version_header") { |
522 template_file = "public/version.h.in" | 498 template_file = "public/version.h.in" |
523 sources = [ | 499 sources = [ |
524 "//build/util/LASTCHANGE", | 500 "//build/util/LASTCHANGE", |
525 "//chrome/VERSION", | 501 "//chrome/VERSION", |
526 ] | 502 ] |
527 output = "$target_gen_dir/public/version.h" | 503 output = "$target_gen_dir/public/version.h" |
528 } | 504 } |
529 | 505 |
530 executable("headless_example") { | 506 executable("headless_example") { |
531 sources = [ | 507 sources = [ |
532 "app/headless_example.cc", | 508 "app/headless_example.cc", |
533 ] | 509 ] |
534 | 510 |
535 deps = [ | 511 deps = [ |
536 "//headless:headless_shell_lib", | 512 "//headless:headless_shell_lib", |
537 ] | 513 ] |
538 } | 514 } |
OLD | NEW |