| 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("//build/util/process_version.gni") | 6 import("//build/util/process_version.gni") |
| 7 import("//headless/headless.gni") | 7 import("//headless/headless.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 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 deps += [ "//ui/ozone" ] | 394 deps += [ "//ui/ozone" ] |
| 395 } | 395 } |
| 396 | 396 |
| 397 if (headless_fontconfig_utils) { | 397 if (headless_fontconfig_utils) { |
| 398 deps += [ ":headless_fontconfig_utils" ] | 398 deps += [ ":headless_fontconfig_utils" ] |
| 399 } | 399 } |
| 400 | 400 |
| 401 configs += [ ":headless_implementation" ] | 401 configs += [ ":headless_implementation" ] |
| 402 } | 402 } |
| 403 | 403 |
| 404 # Headless renderer is a convenience library that includes headless classes | 404 # Headless renderer is a convenience library for non component builds that |
| 405 # that depend on the renderer. These are not added in case of a component build | 405 # includes headless classes that depend on the renderer. |
| 406 # since in that case they are already included in the headless component. | 406 if (!is_component_build) { |
| 407 static_library("headless_renderer") { | 407 static_library("headless_renderer") { |
| 408 deps = [ | 408 deps = [ |
| 409 ":headless", | 409 ":headless", |
| 410 ] | 410 ] |
| 411 if (!is_component_build) { | |
| 412 sources = [ | 411 sources = [ |
| 413 "lib/browser/headless_web_contents_impl.cc", | 412 "lib/browser/headless_web_contents_impl.cc", |
| 414 "lib/browser/headless_web_contents_impl.h", | 413 "lib/browser/headless_web_contents_impl.h", |
| 415 "lib/headless_content_main_delegate.cc", | 414 "lib/headless_content_main_delegate.cc", |
| 416 "lib/headless_content_main_delegate.h", | 415 "lib/headless_content_main_delegate.h", |
| 417 "lib/renderer/headless_content_renderer_client.cc", | 416 "lib/renderer/headless_content_renderer_client.cc", |
| 418 "lib/renderer/headless_content_renderer_client.h", | 417 "lib/renderer/headless_content_renderer_client.h", |
| 419 ] | 418 ] |
| 420 deps += [ "//ui/base" ] | 419 deps += [ "//ui/base" ] |
| 421 if (enable_basic_printing) { | 420 if (enable_basic_printing) { |
| 422 deps += [ "//components/printing/renderer" ] | 421 deps += [ "//components/printing/renderer" ] |
| 423 } | 422 } |
| 424 configs += [ ":headless_implementation" ] | 423 configs += [ ":headless_implementation" ] |
| 425 } | 424 } |
| 425 } else { |
| 426 # For component builds all dependencies are already included in the headless |
| 427 # component. |
| 428 group("headless_renderer") { |
| 429 deps = [ |
| 430 ":headless", |
| 431 ] |
| 432 } |
| 426 } | 433 } |
| 427 | 434 |
| 428 group("headless_tests") { | 435 group("headless_tests") { |
| 429 testonly = true | 436 testonly = true |
| 430 | 437 |
| 431 deps = [ | 438 deps = [ |
| 432 ":headless_browsertests", | 439 ":headless_browsertests", |
| 433 ":headless_example", | 440 ":headless_example", |
| 434 ":headless_unittests", | 441 ":headless_unittests", |
| 435 ] | 442 ] |
| 436 } | 443 } |
| 437 | 444 |
| 438 test("headless_unittests") { | 445 test("headless_unittests") { |
| 439 sources = [ | 446 sources = [ |
| 440 "public/domains/types_unittest.cc", | 447 "public/domains/types_unittest.cc", |
| 441 "public/util/deterministic_dispatcher_test.cc", | 448 "public/util/deterministic_dispatcher_test.cc", |
| 442 "public/util/error_reporter_unittest.cc", | 449 "public/util/error_reporter_unittest.cc", |
| 443 "public/util/expedited_dispatcher_test.cc", | 450 "public/util/expedited_dispatcher_test.cc", |
| 444 "public/util/generic_url_request_job_test.cc", | 451 "public/util/generic_url_request_job_test.cc", |
| 445 "public/util/testing/fake_managed_dispatch_url_request_job.cc", | 452 "public/util/testing/fake_managed_dispatch_url_request_job.cc", |
| 446 "public/util/testing/fake_managed_dispatch_url_request_job.h", | 453 "public/util/testing/fake_managed_dispatch_url_request_job.h", |
| 447 ] | 454 ] |
| 448 | 455 |
| 449 if (is_component_build) { | 456 if (!is_component_build) { |
| 450 deps = [ | |
| 451 ":headless", | |
| 452 ] | |
| 453 } else { | |
| 454 sources += [ | 457 sources += [ |
| 455 "lib/browser/headless_content_browser_client.cc", | 458 "lib/browser/headless_content_browser_client.cc", |
| 456 "lib/browser/headless_content_browser_client.h", | 459 "lib/browser/headless_content_browser_client.h", |
| 457 ] | 460 ] |
| 458 | |
| 459 deps = [ | |
| 460 ":headless_renderer", | |
| 461 ] | |
| 462 } | 461 } |
| 463 | 462 |
| 464 deps += [ | 463 deps = [ |
| 464 ":headless_renderer", |
| 465 "//base/test:run_all_unittests", | 465 "//base/test:run_all_unittests", |
| 466 "//base/test:test_support", | 466 "//base/test:test_support", |
| 467 "//components/crash/content/browser", | 467 "//components/crash/content/browser", |
| 468 "//components/security_state/content", | 468 "//components/security_state/content", |
| 469 "//content/public/app:both", | 469 "//content/public/app:both", |
| 470 "//content/public/child:child", | 470 "//content/public/child:child", |
| 471 "//content/public/common", | 471 "//content/public/common", |
| 472 "//testing/gmock", | 472 "//testing/gmock", |
| 473 "//testing/gtest", | 473 "//testing/gtest", |
| 474 ] | 474 ] |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 "//third_party/tlslite/", | 522 "//third_party/tlslite/", |
| 523 "test/data/", | 523 "test/data/", |
| 524 ] | 524 ] |
| 525 | 525 |
| 526 if (is_mac) { | 526 if (is_mac) { |
| 527 data += [ "$root_out_dir/Helpers/crashpad_handler" ] | 527 data += [ "$root_out_dir/Helpers/crashpad_handler" ] |
| 528 } | 528 } |
| 529 | 529 |
| 530 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] | 530 defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] |
| 531 | 531 |
| 532 if (is_component_build) { | 532 if (!is_component_build) { |
| 533 deps = [ | |
| 534 ":headless", | |
| 535 ] | |
| 536 } else { | |
| 537 sources += [ | 533 sources += [ |
| 538 "lib/browser/headless_content_browser_client.cc", | 534 "lib/browser/headless_content_browser_client.cc", |
| 539 "lib/browser/headless_content_browser_client.h", | 535 "lib/browser/headless_content_browser_client.h", |
| 540 ] | 536 ] |
| 541 | |
| 542 deps = [ | |
| 543 ":headless_renderer", | |
| 544 ] | |
| 545 } | 537 } |
| 546 | 538 |
| 547 deps += [ | 539 deps = [ |
| 540 ":headless_renderer", |
| 548 "//base", | 541 "//base", |
| 549 "//components/crash/content/browser", | 542 "//components/crash/content/browser", |
| 550 "//components/security_state/content", | 543 "//components/security_state/content", |
| 551 "//content/test:test_support", | 544 "//content/test:test_support", |
| 552 "//testing/gmock", | 545 "//testing/gmock", |
| 553 "//testing/gtest", | 546 "//testing/gtest", |
| 554 ] | 547 ] |
| 555 | 548 |
| 556 if (enable_basic_printing) { | 549 if (enable_basic_printing) { |
| 557 deps += [ | 550 deps += [ |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 644 "app/headless_shell.h", | 637 "app/headless_shell.h", |
| 645 "app/headless_shell_switches.cc", | 638 "app/headless_shell_switches.cc", |
| 646 "app/headless_shell_switches.h", | 639 "app/headless_shell_switches.h", |
| 647 "app/shell_navigation_request.cc", | 640 "app/shell_navigation_request.cc", |
| 648 "app/shell_navigation_request.h", | 641 "app/shell_navigation_request.h", |
| 649 "lib/browser/headless_content_browser_client.cc", | 642 "lib/browser/headless_content_browser_client.cc", |
| 650 "lib/browser/headless_content_browser_client.h", | 643 "lib/browser/headless_content_browser_client.h", |
| 651 "public/headless_shell.h", | 644 "public/headless_shell.h", |
| 652 ] | 645 ] |
| 653 | 646 |
| 654 if (is_component_build) { | 647 deps = [ |
| 655 deps = [ | 648 ":headless_renderer", |
| 656 ":headless", | |
| 657 ] | |
| 658 } else { | |
| 659 deps = [ | |
| 660 ":headless_renderer", | |
| 661 ] | |
| 662 } | |
| 663 | |
| 664 deps += [ | |
| 665 "//components/crash/content/browser", | 649 "//components/crash/content/browser", |
| 666 "//components/security_state/content", | 650 "//components/security_state/content", |
| 667 "//content/public/app:both", | 651 "//content/public/app:both", |
| 668 "//content/public/browser", | 652 "//content/public/browser", |
| 669 "//content/public/child:child", | 653 "//content/public/child:child", |
| 670 "//content/public/common", | 654 "//content/public/common", |
| 671 ] | 655 ] |
| 672 | 656 |
| 673 if (enable_basic_printing) { | 657 if (enable_basic_printing) { |
| 674 deps += [ | 658 deps += [ |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 713 | 697 |
| 714 executable("headless_example") { | 698 executable("headless_example") { |
| 715 sources = [ | 699 sources = [ |
| 716 "app/headless_example.cc", | 700 "app/headless_example.cc", |
| 717 ] | 701 ] |
| 718 | 702 |
| 719 deps = [ | 703 deps = [ |
| 720 ":headless_shell_lib", | 704 ":headless_shell_lib", |
| 721 ] | 705 ] |
| 722 } | 706 } |
| OLD | NEW |