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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 "lib/browser/headless_web_contents_impl.h", | 357 "lib/browser/headless_web_contents_impl.h", |
358 "lib/headless_content_main_delegate.cc", | 358 "lib/headless_content_main_delegate.cc", |
359 "lib/headless_content_main_delegate.h", | 359 "lib/headless_content_main_delegate.h", |
360 "lib/renderer/headless_content_renderer_client.cc", | 360 "lib/renderer/headless_content_renderer_client.cc", |
361 "lib/renderer/headless_content_renderer_client.h", | 361 "lib/renderer/headless_content_renderer_client.h", |
362 ] | 362 ] |
363 | 363 |
364 deps += [ | 364 deps += [ |
365 "//components/crash/content/browser", | 365 "//components/crash/content/browser", |
366 "//components/security_state/content", | 366 "//components/security_state/content", |
| 367 "//third_party/WebKit/public:blink_headers", |
367 ] | 368 ] |
368 | 369 |
369 if (enable_basic_printing) { | 370 if (enable_basic_printing) { |
370 deps += [ | 371 deps += [ |
371 "//components/printing/browser", | 372 "//components/printing/browser", |
372 "//components/printing/renderer", | 373 "//components/printing/renderer", |
373 ] | 374 ] |
374 } | 375 } |
375 } | 376 } |
376 | 377 |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
566 "app/headless_shell.h", | 567 "app/headless_shell.h", |
567 "app/headless_shell_switches.cc", | 568 "app/headless_shell_switches.cc", |
568 "app/headless_shell_switches.h", | 569 "app/headless_shell_switches.h", |
569 "app/headless_shell_win.cc", | 570 "app/headless_shell_win.cc", |
570 "app/shell_navigation_request.cc", | 571 "app/shell_navigation_request.cc", |
571 "app/shell_navigation_request.h", | 572 "app/shell_navigation_request.h", |
572 "lib/browser/headless_content_browser_client.cc", | 573 "lib/browser/headless_content_browser_client.cc", |
573 "lib/browser/headless_content_browser_client.h", | 574 "lib/browser/headless_content_browser_client.h", |
574 "public/headless_shell.h", | 575 "public/headless_shell.h", |
575 ] | 576 ] |
| 577 deps = [ |
| 578 ":headless", |
| 579 "//content:sandbox_helper_win", |
| 580 "//content/public/browser", |
| 581 "//content/public/common", |
| 582 "//net", |
| 583 "//sandbox", |
| 584 ] |
576 | 585 |
577 if (is_multi_dll_chrome) { | 586 if (is_multi_dll_chrome) { |
578 defines = [ "CHROME_MULTIPLE_DLL_BROWSER" ] | 587 defines = [ "CHROME_MULTIPLE_DLL_BROWSER" ] |
579 sources += [ | 588 sources += [ |
580 "lib/browser/headless_web_contents_impl.cc", | 589 "lib/browser/headless_web_contents_impl.cc", |
581 "lib/browser/headless_web_contents_impl.h", | 590 "lib/browser/headless_web_contents_impl.h", |
582 "lib/headless_content_main_delegate.cc", | 591 "lib/headless_content_main_delegate.cc", |
583 "lib/headless_content_main_delegate.h", | 592 "lib/headless_content_main_delegate.h", |
584 "lib/headless_content_main_delegate_win.cc", | 593 "lib/headless_content_main_delegate_win.cc", |
585 ] | 594 ] |
| 595 deps += [ "//third_party/WebKit/public:blink_headers" ] |
586 } | 596 } |
587 | 597 |
588 deps = [ | |
589 ":headless", | |
590 "//content/public/browser", | |
591 "//content/public/common", | |
592 "//net", | |
593 ] | |
594 | |
595 deps += [ | |
596 "//content:sandbox_helper_win", | |
597 "//sandbox", | |
598 ] | |
599 | |
600 configs += [ ":headless_implementation" ] | 598 configs += [ ":headless_implementation" ] |
601 } | 599 } |
602 | 600 |
603 # Headless library with child specific dependencies (e.g., renderer). This | 601 # Headless library with child specific dependencies (e.g., renderer). This |
604 # is used when no browser depencendies are needed (e.g. chrome:child_dll). | 602 # is used when no browser depencendies are needed (e.g. chrome:child_dll). |
605 static_library("headless_shell_child_lib") { | 603 static_library("headless_shell_child_lib") { |
606 sources = [ | 604 sources = [ |
607 "app/headless_shell.cc", | 605 "app/headless_shell.cc", |
608 "app/headless_shell.h", | 606 "app/headless_shell.h", |
609 "app/headless_shell_switches.cc", | 607 "app/headless_shell_switches.cc", |
610 "app/headless_shell_switches.h", | 608 "app/headless_shell_switches.h", |
611 "app/headless_shell_win.cc", | 609 "app/headless_shell_win.cc", |
612 "app/shell_navigation_request.cc", | 610 "app/shell_navigation_request.cc", |
613 "app/shell_navigation_request.h", | 611 "app/shell_navigation_request.h", |
614 "public/headless_shell.h", | 612 "public/headless_shell.h", |
615 ] | 613 ] |
| 614 deps = [ |
| 615 ":headless_renderer", |
| 616 "//content/public/child:child", |
| 617 "//net", |
| 618 "//ui/base", |
| 619 ] |
616 | 620 |
617 if (is_multi_dll_chrome) { | 621 if (is_multi_dll_chrome) { |
618 defines = [ "CHROME_MULTIPLE_DLL_CHILD" ] | 622 defines = [ "CHROME_MULTIPLE_DLL_CHILD" ] |
619 sources += [ | 623 sources += [ |
620 "lib/browser/headless_web_contents_impl.cc", | 624 "lib/browser/headless_web_contents_impl.cc", |
621 "lib/browser/headless_web_contents_impl.h", | 625 "lib/browser/headless_web_contents_impl.h", |
622 "lib/headless_content_main_delegate.cc", | 626 "lib/headless_content_main_delegate.cc", |
623 "lib/headless_content_main_delegate.h", | 627 "lib/headless_content_main_delegate.h", |
624 "lib/headless_content_main_delegate_win.cc", | 628 "lib/headless_content_main_delegate_win.cc", |
625 ] | 629 ] |
| 630 deps += [ "//third_party/WebKit/public:blink_headers" ] |
626 } | 631 } |
627 | 632 |
628 deps = [ | |
629 ":headless_renderer", | |
630 "//content/public/child:child", | |
631 "//net", | |
632 "//ui/base", | |
633 ] | |
634 | |
635 configs += [ ":headless_implementation" ] | 633 configs += [ ":headless_implementation" ] |
636 } | 634 } |
637 } | 635 } |
638 | 636 |
639 # Headless library with all included dependencies. Use this library unless you | 637 # Headless library with all included dependencies. Use this library unless you |
640 # have browser/child dependencies restrictions. | 638 # have browser/child dependencies restrictions. |
641 static_library("headless_shell_lib") { | 639 static_library("headless_shell_lib") { |
642 sources = [ | 640 sources = [ |
643 "app/headless_shell.cc", | 641 "app/headless_shell.cc", |
644 "app/headless_shell.h", | 642 "app/headless_shell.h", |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
704 | 702 |
705 executable("headless_example") { | 703 executable("headless_example") { |
706 sources = [ | 704 sources = [ |
707 "app/headless_example.cc", | 705 "app/headless_example.cc", |
708 ] | 706 ] |
709 | 707 |
710 deps = [ | 708 deps = [ |
711 ":headless_shell_lib", | 709 ":headless_shell_lib", |
712 ] | 710 ] |
713 } | 711 } |
OLD | NEW |