| Index: headless/BUILD.gn
|
| diff --git a/headless/BUILD.gn b/headless/BUILD.gn
|
| index f94e93d356014c2be137619d56271b8ba8540d8b..3c1949f9d2b3955ea238b6363f77e10ea380e89f 100644
|
| --- a/headless/BUILD.gn
|
| +++ b/headless/BUILD.gn
|
| @@ -2,23 +2,133 @@
|
| # Use of this source code is governed by a BSD-style license that can be
|
| # found in the LICENSE file.
|
|
|
| +import("//testing/test.gni")
|
| +import("//tools/grit/repack.gni")
|
| +
|
| group("headless") {
|
| deps = [
|
| "//headless:headless_lib",
|
| ]
|
| }
|
|
|
| +repack("pak") {
|
| + sources = [
|
| + "$root_gen_dir/blink/devtools_resources.pak",
|
| + "$root_gen_dir/blink/public/resources/blink_image_resources_100_percent.pak",
|
| + "$root_gen_dir/blink/public/resources/blink_resources.pak",
|
| + "$root_gen_dir/content/app/resources/content_resources_100_percent.pak",
|
| + "$root_gen_dir/content/app/strings/content_strings_en-US.pak",
|
| + "$root_gen_dir/content/browser/tracing/tracing_resources.pak",
|
| + "$root_gen_dir/content/content_resources.pak",
|
| + "$root_gen_dir/net/net_resources.pak",
|
| + "$root_gen_dir/ui/resources/ui_resources_100_percent.pak",
|
| + "$root_gen_dir/ui/resources/webui_resources.pak",
|
| + "$root_gen_dir/ui/strings/app_locale_settings_en-US.pak",
|
| + "$root_gen_dir/ui/strings/ui_strings_en-US.pak",
|
| + ]
|
| +
|
| + deps = [
|
| + "//content:resources",
|
| + "//content/app/resources",
|
| + "//content/app/strings",
|
| + "//content/browser/devtools:resources",
|
| + "//content/browser/tracing:resources",
|
| + "//net:net_resources",
|
| + "//third_party/WebKit/public:image_resources",
|
| + "//third_party/WebKit/public:resources",
|
| + "//ui/resources",
|
| + "//ui/strings",
|
| + ]
|
| +
|
| + output = "$root_out_dir/headless_lib.pak"
|
| +}
|
| +
|
| static_library("headless_lib") {
|
| sources = [
|
| + "lib/browser/headless_browser_context.cc",
|
| + "lib/browser/headless_browser_context.h",
|
| + "lib/browser/headless_browser_impl.cc",
|
| + "lib/browser/headless_browser_impl.h",
|
| + "lib/browser/headless_browser_main_parts.cc",
|
| + "lib/browser/headless_browser_main_parts.h",
|
| + "lib/browser/headless_content_browser_client.cc",
|
| + "lib/browser/headless_content_browser_client.h",
|
| + "lib/browser/headless_devtools.cc",
|
| + "lib/browser/headless_devtools.h",
|
| + "lib/browser/headless_screen.cc",
|
| + "lib/browser/headless_screen.h",
|
| + "lib/browser/headless_url_request_context_getter.cc",
|
| + "lib/browser/headless_url_request_context_getter.h",
|
| + "lib/browser/headless_web_contents_impl.cc",
|
| + "lib/browser/headless_web_contents_impl.h",
|
| + "lib/headless_content_client.cc",
|
| + "lib/headless_content_client.h",
|
| + "lib/headless_content_main_delegate.cc",
|
| + "lib/headless_content_main_delegate.h",
|
| + "lib/renderer/headless_content_renderer_client.cc",
|
| + "lib/renderer/headless_content_renderer_client.h",
|
| + "lib/utility/headless_content_utility_client.cc",
|
| + "lib/utility/headless_content_utility_client.h",
|
| "public/headless_browser.cc",
|
| "public/headless_browser.h",
|
| "public/headless_export.h",
|
| - "public/network.h",
|
| - "public/web_contents.h",
|
| - "public/web_frame.h",
|
| + "public/headless_web_contents.h",
|
| ]
|
|
|
| deps = [
|
| + ":pak",
|
| "//base",
|
| + "//components/devtools_http_handler",
|
| + "//content/public/browser",
|
| + "//content/public/common",
|
| + "//content/public/renderer",
|
| + "//content/public/utility",
|
| + "//net",
|
| + "//ui/aura",
|
| + "//ui/base",
|
| + "//ui/compositor",
|
| + "//ui/ozone:ozone_base",
|
| + "//url",
|
| + ]
|
| +}
|
| +
|
| +group("headless_tests") {
|
| + testonly = true
|
| +
|
| + deps = [
|
| + ":headless_browsertests",
|
| + ]
|
| +}
|
| +
|
| +test("headless_browsertests") {
|
| + sources = [
|
| + "lib/headless_browser_browsertest.cc",
|
| + "lib/headless_web_contents_browsertest.cc",
|
| + "test/headless_browser_test.cc",
|
| + "test/headless_browser_test.h",
|
| + "test/headless_test_launcher.cc",
|
| + ]
|
| +
|
| + defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
|
| +
|
| + deps = [
|
| + "//base",
|
| + "//content/test:browsertest_base",
|
| + "//content/test:test_support",
|
| + "//headless:headless_lib",
|
| + "//testing/gmock",
|
| + "//testing/gtest",
|
| + ]
|
| +}
|
| +
|
| +executable("headless_shell") {
|
| + testonly = true
|
| +
|
| + sources = [
|
| + "app/headless_shell.cc",
|
| + ]
|
| +
|
| + deps = [
|
| + "//headless:headless_lib",
|
| ]
|
| }
|
|
|