diff --git a/BUILD.gn b/BUILD.gn index 6eefc1bb365d73..db966a7a738762 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -714,6 +714,10 @@ group("gn_all") { deps += [ "//tools/perf/contrib/vr_benchmarks:vr_perf_tests" ] } } + + if (is_fuchsia) { + deps += [ "//headless" ] + } } # TODO(GYP_GONE): This target exists for compatibility with GYP, specifically diff --git a/headless/BUILD.gn b/headless/BUILD.gn index 91987a4d0928ae..5523dadc38dbcf 100644 --- a/headless/BUILD.gn +++ b/headless/BUILD.gn @@ -223,7 +223,7 @@ js_library("js_devtools_bindings_lib") { extra_deps = [ ":gen_devtools_client_api" ] } -if (headless_fontconfig_utils) { +if (headless_fontconfig_utils && !is_fuchsia) { static_library("headless_fontconfig_utils") { sources = [ "public/util/fontconfig.cc", @@ -280,8 +280,6 @@ component("headless") { "lib/browser/headless_window_tree_host.h", "lib/headless_content_client.cc", "lib/headless_content_client.h", - "lib/headless_crash_reporter_client.cc", - "lib/headless_crash_reporter_client.h", "public/headless_browser.cc", "public/headless_browser.h", "public/headless_browser_context.h", @@ -323,6 +321,13 @@ component("headless") { "public/util/user_agent.h", ] + if (!is_fuchsia) { + sources += [ + "lib/headless_crash_reporter_client.cc", + "lib/headless_crash_reporter_client.h", + ] + } + sources += generated_devtools_api if (use_aura) { @@ -391,11 +396,14 @@ component("headless") { ] deps += [ - "//components/crash/content/browser", "//components/security_state/content", "//third_party/WebKit/public:blink_headers", ] + if (!is_fuchsia) { + deps += [ "//components/crash/content/browser" ] + } + if (enable_basic_printing) { deps += [ "//components/printing/browser", @@ -431,7 +439,7 @@ component("headless") { deps += [ "//ui/ozone" ] } - if (headless_fontconfig_utils) { + if (headless_fontconfig_utils && !is_fuchsia) { deps += [ ":headless_fontconfig_utils" ] } @@ -510,7 +518,6 @@ test("headless_unittests") { ":headless_renderer", "//base/test:run_all_unittests", "//base/test:test_support", - "//components/crash/content/browser", "//components/security_state/content", "//content/public/app:both", "//content/public/child:child", @@ -519,6 +526,10 @@ test("headless_unittests") { "//testing/gtest", ] + if (!is_fuchsia) { + deps += [ "//components/crash/content/browser" ] + } + if (enable_basic_printing) { sources += [ "lib/browser/headless_printing_unittest.cc" ] deps += [ "//components/printing/browser" ] @@ -655,13 +666,16 @@ test("headless_browsertests") { deps = [ ":headless_renderer", "//base", - "//components/crash/content/browser", "//components/security_state/content", "//content/test:test_support", "//testing/gmock", "//testing/gtest", ] + if (!is_fuchsia) { + deps += [ "//components/crash/content/browser" ] + } + # Only include this if we built the js_binary if (is_linux) { data += [ "$root_out_dir/headless_browser_tests.pak" ] @@ -774,7 +788,6 @@ static_library("headless_shell_lib") { deps = [ ":headless_renderer", - "//components/crash/content/browser", "//components/security_state/content", "//content/public/app:both", "//content/public/browser", @@ -782,6 +795,10 @@ static_library("headless_shell_lib") { "//content/public/common", ] + if (!is_fuchsia) { + deps += [ "//components/crash/content/browser" ] + } + if (enable_basic_printing) { deps += [ "//components/printing/browser",