Commit 73db2f53 authored by Nico Weber's avatar Nico Weber Committed by Commit Bot

Remove both vs browser/child split in content gn files.

No intended behavior change.

Bug: 1056290
Change-Id: I60ec2cd5fbe0f151ed1d995b4c13cfcab6758084
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2157965
Commit-Queue: John Abd-El-Malek <jam@chromium.org>
Auto-Submit: Nico Weber <thakis@chromium.org>
Reviewed-by: default avatarJohn Abd-El-Malek <jam@chromium.org>
Cr-Commit-Position: refs/heads/master@{#761087}
parent f61dca7d
...@@ -572,7 +572,7 @@ group("gn_all") { ...@@ -572,7 +572,7 @@ group("gn_all") {
if (is_android || (is_linux && !is_chromeos)) { if (is_android || (is_linux && !is_chromeos)) {
deps += [ deps += [
"//components/network_hints/browser", "//components/network_hints/browser",
"//content/public/app:both", "//content/public/app",
"//mojo:mojo_perftests", "//mojo:mojo_perftests",
"//services/service_manager/public/cpp", "//services/service_manager/public/cpp",
"//testing/gmock:gmock_main", "//testing/gmock:gmock_main",
......
...@@ -31,7 +31,7 @@ source_set("lib") { ...@@ -31,7 +31,7 @@ source_set("lib") {
"//components/version_info", "//components/version_info",
"//components/version_info/android:channel_getter", "//components/version_info/android:channel_getter",
"//components/viz/common", "//components/viz/common",
"//content/public/app:both", "//content/public/app",
"//content/public/browser", "//content/public/browser",
"//content/public/common", "//content/public/common",
"//content/public/common:content_descriptor_keys", "//content/public/common:content_descriptor_keys",
......
...@@ -2340,7 +2340,7 @@ executable("ash_shell_with_content") { ...@@ -2340,7 +2340,7 @@ executable("ash_shell_with_content") {
"//base", "//base",
"//components/user_manager", "//components/user_manager",
"//content", "//content",
"//content/public/app:both", "//content/public/app",
"//device/bluetooth", "//device/bluetooth",
] ]
} }
......
...@@ -230,7 +230,7 @@ if (!is_android && !is_mac) { ...@@ -230,7 +230,7 @@ if (!is_android && !is_mac) {
# Needed to use the master_preferences functions # Needed to use the master_preferences functions
"//chrome/installer/util:with_no_strings", "//chrome/installer/util:with_no_strings",
"//content/public/app:both", "//content/public/app",
"//content/public/common:service_names", "//content/public/common:service_names",
# For headless mode. # For headless mode.
...@@ -354,7 +354,7 @@ if (is_win) { ...@@ -354,7 +354,7 @@ if (is_win) {
deps += [ deps += [
":child_dependencies", ":child_dependencies",
"//content/public/app:both", "//content/public/app",
"//headless:headless_renderer", "//headless:headless_renderer",
] ]
...@@ -929,7 +929,7 @@ if (is_win) { ...@@ -929,7 +929,7 @@ if (is_win) {
"//chrome/common/profiler", "//chrome/common/profiler",
"//components/crash/core/app", "//components/crash/core/app",
"//components/policy:generated", "//components/policy:generated",
"//content/public/app:both", "//content/public/app",
"//content/public/common:service_names", "//content/public/common:service_names",
"//headless:headless_shell_lib", "//headless:headless_shell_lib",
"//services/service_manager/embedder", "//services/service_manager/embedder",
...@@ -1485,7 +1485,7 @@ if (is_android) { ...@@ -1485,7 +1485,7 @@ if (is_android) {
"//components/safe_browsing:buildflags", "//components/safe_browsing:buildflags",
"//components/safe_browsing/android:safe_browsing_mobile", "//components/safe_browsing/android:safe_browsing_mobile",
"//components/services/heap_profiling", "//components/services/heap_profiling",
"//content/public/app:both", "//content/public/app",
"//content/public/common:service_names", "//content/public/common:service_names",
"//services/service_manager/embedder", "//services/service_manager/embedder",
] ]
......
...@@ -126,7 +126,7 @@ static_library("test_support") { ...@@ -126,7 +126,7 @@ static_library("test_support") {
"//components/gwp_asan/buildflags", "//components/gwp_asan/buildflags",
"//components/nacl/common:buildflags", "//components/nacl/common:buildflags",
"//components/startup_metric_utils/browser", "//components/startup_metric_utils/browser",
"//content/public/app:both", "//content/public/app",
"//content/public/common", "//content/public/common",
"//content/public/common:service_names", "//content/public/common:service_names",
"//pdf", "//pdf",
......
...@@ -204,7 +204,7 @@ static_library("test_support") { ...@@ -204,7 +204,7 @@ static_library("test_support") {
"//components/update_client:test_support", "//components/update_client:test_support",
"//components/variations:test_support", "//components/variations:test_support",
"//components/web_resource:test_support", "//components/web_resource:test_support",
"//content/public/app:both", "//content/public/app",
"//content/public/child", "//content/public/child",
"//content/public/common", "//content/public/common",
"//content/public/renderer", "//content/public/renderer",
...@@ -3695,7 +3695,7 @@ test("unit_tests") { ...@@ -3695,7 +3695,7 @@ test("unit_tests") {
"//components/ukm/content", "//components/ukm/content",
"//components/version_info:generate_version_info", "//components/version_info:generate_version_info",
"//content/app/resources", "//content/app/resources",
"//content/public/app:both", "//content/public/app",
"//content/test:test_support", "//content/test:test_support",
"//courgette:courgette_lib", "//courgette:courgette_lib",
"//crypto:platform", "//crypto:platform",
......
...@@ -486,7 +486,7 @@ cast_executable("cast_shell") { ...@@ -486,7 +486,7 @@ cast_executable("cast_shell") {
":cast_shell_lib", ":cast_shell_lib",
":chromecast_locales_pak", ":chromecast_locales_pak",
"//chromecast/app", "//chromecast/app",
"//content/public/app:both", "//content/public/app",
] ]
} }
......
...@@ -26,7 +26,7 @@ cast_shared_library("libcast_shell_android") { ...@@ -26,7 +26,7 @@ cast_shared_library("libcast_shell_android") {
"//chromecast/media/cma/backend/android:cast_media_android", "//chromecast/media/cma/backend/android:cast_media_android",
"//components/crash/android:crash_android", "//components/crash/android:crash_android",
"//components/minidump_uploader", "//components/minidump_uploader",
"//content/public/app:both", "//content/public/app",
"//content/public/browser", "//content/public/browser",
"//skia", "//skia",
] ]
......
...@@ -24,7 +24,7 @@ cast_source_set("app") { ...@@ -24,7 +24,7 @@ cast_source_set("app") {
"//chromecast/renderer", "//chromecast/renderer",
"//chromecast/utility", "//chromecast/utility",
"//components/crash/core/common:crash_key", "//components/crash/core/common:crash_key",
"//content/public/app:both", "//content/public/app",
"//content/public/browser", "//content/public/browser",
"//content/public/common", "//content/public/common",
"//ui/base", "//ui/base",
......
...@@ -82,7 +82,7 @@ if (!is_nacl_nonsfi) { ...@@ -82,7 +82,7 @@ if (!is_nacl_nonsfi) {
if (is_component_build) { if (is_component_build) {
component("content") { component("content") {
public_deps = public_deps =
content_shared_components + [ "//content/public/app:both_sources" ] content_shared_components + [ "//content/public/app:app_sources" ]
} }
} else if (is_nacl_nonsfi) { } else if (is_nacl_nonsfi) {
source_set("content") { source_set("content") {
......
...@@ -159,12 +159,11 @@ group("content_app_child_deps") { ...@@ -159,12 +159,11 @@ group("content_app_child_deps") {
] ]
} }
# This includes the app sources for both the browser and child processes. implement_content_app("app") {
implement_content_app("both") {
# Only the public target should depend on this. All other targets (even # Only the public target should depend on this. All other targets (even
# internal content ones) should depend on the public one. # internal content ones) should depend on the public one.
visibility = [ visibility = [
":both_for_content_tests", # See top of //content/BUILD.gn for why. ":for_content_tests", # See top of //content/BUILD.gn for why.
"//content/public/app:*", "//content/public/app:*",
] ]
deps = [ deps = [
...@@ -178,9 +177,9 @@ implement_content_app("both") { ...@@ -178,9 +177,9 @@ implement_content_app("both") {
} }
# See comment at the top of //content/BUILD.gn for how this works. # See comment at the top of //content/BUILD.gn for how this works.
group("both_for_content_tests") { group("for_content_tests") {
visibility = [ "//content/test/*" ] visibility = [ "//content/test/*" ]
if (!is_component_build) { if (!is_component_build) {
public_deps = [ ":both" ] public_deps = [ ":app" ]
} }
} }
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
# foo -> # foo ->
# //content/public/app:child (group; "browser" and "both" ones look the same) # //content/public/app:child (group; "browser" and "both" ones look the same)
# //content (shared library) -> # //content (shared library) ->
# //content/public/app:both_sources (source set) # //content/public/app:app_sources (source set)
import("//build/config/chrome_build.gni") import("//build/config/chrome_build.gni")
import("//build/config/ui.gni") import("//build/config/ui.gni")
...@@ -46,7 +46,7 @@ public_app_shared_deps = [ ...@@ -46,7 +46,7 @@ public_app_shared_deps = [
] ]
if (is_component_build) { if (is_component_build) {
source_set("both_sources") { source_set("app_sources") {
# Only the main content shared library can pull this in. # Only the main content shared library can pull this in.
visibility = [ "//content:content" ] visibility = [ "//content:content" ]
...@@ -55,7 +55,7 @@ if (is_component_build) { ...@@ -55,7 +55,7 @@ if (is_component_build) {
configs += [ "//content:content_implementation" ] configs += [ "//content:content_implementation" ]
deps = public_app_shared_deps + [ deps = public_app_shared_deps + [
"//content/app:both", "//content/app",
"//content/public/browser:browser_sources", "//content/public/browser:browser_sources",
"//content/public/gpu:gpu_sources", "//content/public/gpu:gpu_sources",
"//content/public/renderer:renderer_sources", "//content/public/renderer:renderer_sources",
...@@ -65,39 +65,20 @@ if (is_component_build) { ...@@ -65,39 +65,20 @@ if (is_component_build) {
allow_circular_includes_from = [ allow_circular_includes_from = [
# This target is a pair with the non-public version. They always go # This target is a pair with the non-public version. They always go
# together and include headers from each other. # together and include headers from each other.
"//content/app:both", "//content/app",
] ]
} }
# These all just forward to content, which in turn depends on "both_sources". # This just forwards to content, which in turn depends on "app_sources".
group("browser") { group("app") {
public_deps = [ "//content" ]
}
group("child") {
public_deps = [ "//content" ]
}
group("both") {
public_deps = [ "//content" ] public_deps = [ "//content" ]
} }
} else { } else {
# content_main_delegate.cc conditionally includes content_browser_client.h source_set("app") {
# from //content/public/browser when it's not the child build. However,
# the header checker doesn't know this doesn't apply and throws an error.
# So all of these targets set check_includes = false.
#
# TODO(brettw) either teach the header checker to understand simple
# ifdefs or split the file apart so we can enable header checking here.
# Furthermore, since this file exists in more than one target, they all
# have to opt-out of header checking (a file is checked once for all
# targets using a source file).
source_set("both") {
check_includes = false # See comment above.
sources = public_app_shared_sources sources = public_app_shared_sources
configs += [ "//content:content_implementation" ] configs += [ "//content:content_implementation" ]
deps = public_app_shared_deps + [ deps = public_app_shared_deps + [
"//content/app:both", "//content/app",
"//content/public/browser", "//content/public/browser",
"//content/public/common", "//content/public/common",
"//content/public/gpu:gpu_sources", "//content/public/gpu:gpu_sources",
...@@ -108,13 +89,9 @@ if (is_component_build) { ...@@ -108,13 +89,9 @@ if (is_component_build) {
allow_circular_includes_from = [ allow_circular_includes_from = [
# This target is a pair with the non-public version. They always go # This target is a pair with the non-public version. They always go
# together and include headers from each other. # together and include headers from each other.
"//content/app:both", "//content/app",
] ]
} }
# When the multi-DLL build is disabled, there is only one type of the
# "app" target, and "browser" and "child" are the same as "both".
# TODO(https://crbug.com/1056290): Remove these now that they are pointless.
} }
source_set("content_browser_manifest") { source_set("content_browser_manifest") {
......
...@@ -231,7 +231,7 @@ static_library("content_shell_app") { ...@@ -231,7 +231,7 @@ static_library("content_shell_app") {
":content_shell_lib", ":content_shell_lib",
":web_test_common", ":web_test_common",
":web_test_renderer", ":web_test_renderer",
"//content/public/app:both", "//content/public/app",
"//v8", "//v8",
] ]
if (!is_fuchsia) { if (!is_fuchsia) {
...@@ -390,7 +390,7 @@ static_library("content_shell_lib") { ...@@ -390,7 +390,7 @@ static_library("content_shell_lib") {
":android_shell_descriptors", ":android_shell_descriptors",
# content_shell_lib also exposes all public content APIs. # content_shell_lib also exposes all public content APIs.
"//content/public/app:both", "//content/public/app",
"//content/public/browser", "//content/public/browser",
"//content/public/child", "//content/public/child",
"//content/public/common", "//content/public/common",
...@@ -739,7 +739,7 @@ if (is_android) { ...@@ -739,7 +739,7 @@ if (is_android) {
":content_shell_app", ":content_shell_app",
":pak", ":pak",
"//build/win:default_exe_manifest", "//build/win:default_exe_manifest",
"//content/public/app:both", "//content/public/app",
] ]
data_deps = [ data_deps = [
...@@ -883,7 +883,7 @@ if (is_mac) { ...@@ -883,7 +883,7 @@ if (is_mac) {
":content_shell_framework_helpers", ":content_shell_framework_helpers",
":content_shell_framework_resources", ":content_shell_framework_resources",
":content_shell_swiftshader_library", ":content_shell_swiftshader_library",
"//content/public/app:both", "//content/public/app",
"//content/public/common", "//content/public/common",
"//third_party/icu:icudata", "//third_party/icu:icudata",
] ]
......
...@@ -355,7 +355,7 @@ jumbo_static_library("test_support") { ...@@ -355,7 +355,7 @@ jumbo_static_library("test_support") {
public_deps = [ public_deps = [
"//components/download/public/common:test_support", "//components/download/public/common:test_support",
"//components/services/storage/public/mojom", "//components/services/storage/public/mojom",
"//content/public/app:both", "//content/public/app",
"//content/public/browser", "//content/public/browser",
"//content/public/common", "//content/public/common",
"//ipc", "//ipc",
...@@ -374,7 +374,7 @@ jumbo_static_library("test_support") { ...@@ -374,7 +374,7 @@ jumbo_static_library("test_support") {
"//cc:test_support", "//cc:test_support",
"//components/viz/client", "//components/viz/client",
"//components/viz/host", "//components/viz/host",
"//content/app:both_for_content_tests", "//content/app:for_content_tests",
"//content/browser:for_content_tests", "//content/browser:for_content_tests",
"//content/browser/speech/proto", "//content/browser/speech/proto",
"//content/child:for_content_tests", "//content/child:for_content_tests",
...@@ -650,7 +650,7 @@ jumbo_static_library("browsertest_support") { ...@@ -650,7 +650,7 @@ jumbo_static_library("browsertest_support") {
"//base/test:test_config", "//base/test:test_config",
"//base/test:test_support", "//base/test:test_support",
"//components/network_session_configurator/common:common", "//components/network_session_configurator/common:common",
"//content/app:both_for_content_tests", "//content/app:for_content_tests",
"//content/browser:for_content_tests", "//content/browser:for_content_tests",
"//content/shell:content_shell_app", "//content/shell:content_shell_app",
"//content/shell:content_shell_lib", "//content/shell:content_shell_lib",
...@@ -666,7 +666,7 @@ jumbo_static_library("browsertest_support") { ...@@ -666,7 +666,7 @@ jumbo_static_library("browsertest_support") {
] ]
if (is_android) { if (is_android) {
deps += [ "//content/public/app:both" ] deps += [ "//content/public/app" ]
} else { } else {
deps += [ "//content/public/browser" ] deps += [ "//content/public/browser" ]
} }
...@@ -1160,7 +1160,7 @@ test("content_browsertests") { ...@@ -1160,7 +1160,7 @@ test("content_browsertests") {
"//components/url_formatter:url_formatter", "//components/url_formatter:url_formatter",
"//components/viz/host", "//components/viz/host",
"//components/viz/test:test_support", "//components/viz/test:test_support",
"//content/app:both_for_content_tests", "//content/app:for_content_tests",
"//content/browser:for_content_tests", "//content/browser:for_content_tests",
"//content/browser/background_sync:background_sync_proto", "//content/browser/background_sync:background_sync_proto",
"//content/browser/resources/media:media_internals_resources_grit", "//content/browser/resources/media:media_internals_resources_grit",
...@@ -2043,7 +2043,7 @@ test("content_unittests") { ...@@ -2043,7 +2043,7 @@ test("content_unittests") {
"//components/viz/host", "//components/viz/host",
"//components/viz/service", "//components/viz/service",
"//components/viz/test:test_support", "//components/viz/test:test_support",
"//content/app:both_for_content_tests", "//content/app:for_content_tests",
"//content/browser:for_content_tests", "//content/browser:for_content_tests",
"//content/browser/background_fetch:background_fetch_proto", "//content/browser/background_fetch:background_fetch_proto",
"//content/browser/cache_storage:cache_storage_proto", "//content/browser/cache_storage:cache_storage_proto",
......
...@@ -150,7 +150,7 @@ fuzzer_test("appcache_fuzzer") { ...@@ -150,7 +150,7 @@ fuzzer_test("appcache_fuzzer") {
deps = [ deps = [
":appcache_fuzzer_proto", ":appcache_fuzzer_proto",
"//base/test:test_support", "//base/test:test_support",
"//content/app:both_for_content_tests", "//content/app:for_content_tests",
"//content/browser:browser", "//content/browser:browser",
"//content/public/browser:browser_sources", "//content/public/browser:browser_sources",
"//content/test:test_support", "//content/test:test_support",
...@@ -180,7 +180,7 @@ fuzzer_test("speech_audio_encoder_fuzzer") { ...@@ -180,7 +180,7 @@ fuzzer_test("speech_audio_encoder_fuzzer") {
fuzzer_test("browser_accessibility_fuzzer") { fuzzer_test("browser_accessibility_fuzzer") {
sources = [ "browser_accessibility_fuzzer.cc" ] sources = [ "browser_accessibility_fuzzer.cc" ]
deps = [ deps = [
"//content/app:both_for_content_tests", "//content/app:for_content_tests",
"//content/browser:browser", "//content/browser:browser",
"//content/browser:browser", "//content/browser:browser",
"//content/public/browser:browser_sources", "//content/public/browser:browser_sources",
......
...@@ -262,7 +262,7 @@ executable("app_shell") { ...@@ -262,7 +262,7 @@ executable("app_shell") {
deps = [ deps = [
":app_shell_lib", ":app_shell_lib",
"//build/win:default_exe_manifest", "//build/win:default_exe_manifest",
"//content/public/app:both", "//content/public/app",
"//extensions:shell_and_test_pak", "//extensions:shell_and_test_pak",
] ]
......
...@@ -78,7 +78,7 @@ component("web_engine_core") { ...@@ -78,7 +78,7 @@ component("web_engine_core") {
"//components/media_control/browser", "//components/media_control/browser",
"//components/media_control/renderer", "//components/media_control/renderer",
"//components/version_info", "//components/version_info",
"//content/public/app:both", "//content/public/app",
"//content/public/browser", "//content/public/browser",
"//content/public/child", "//content/public/child",
"//content/public/common", "//content/public/common",
...@@ -202,7 +202,7 @@ executable("web_engine_exe") { ...@@ -202,7 +202,7 @@ executable("web_engine_exe") {
deps = [ deps = [
":web_engine_core", ":web_engine_core",
"//base", "//base",
"//content/public/app:both", "//content/public/app",
"//services/service_manager/embedder:embedder_switches", "//services/service_manager/embedder:embedder_switches",
] ]
sources = [ "web_engine_main.cc" ] sources = [ "web_engine_main.cc" ]
......
...@@ -581,7 +581,7 @@ test("headless_unittests") { ...@@ -581,7 +581,7 @@ test("headless_unittests") {
"//base/test:test_support", "//base/test:test_support",
"//components/security_state/content", "//components/security_state/content",
"//components/services/print_compositor/public/mojom", "//components/services/print_compositor/public/mojom",
"//content/public/app:both", "//content/public/app",
"//content/public/child:child", "//content/public/child:child",
"//content/public/common", "//content/public/common",
"//testing/gmock", "//testing/gmock",
...@@ -737,7 +737,7 @@ jumbo_static_library("headless_shell_lib") { ...@@ -737,7 +737,7 @@ jumbo_static_library("headless_shell_lib") {
"//components/os_crypt", "//components/os_crypt",
"//components/security_state/content", "//components/security_state/content",
"//components/services/print_compositor/public/mojom", "//components/services/print_compositor/public/mojom",
"//content/public/app:both", "//content/public/app",
"//content/public/browser", "//content/public/browser",
"//content/public/child:child", "//content/public/child:child",
"//content/public/common", "//content/public/common",
......
...@@ -305,7 +305,7 @@ source_set("weblayer_lib_base") { ...@@ -305,7 +305,7 @@ source_set("weblayer_lib_base") {
"//content:content_resources", "//content:content_resources",
"//content:dev_ui_content_resources", "//content:dev_ui_content_resources",
"//content/app/resources", "//content/app/resources",
"//content/public/app:both", "//content/public/app",
"//content/public/browser", "//content/public/browser",
"//content/public/child", "//content/public/child",
"//content/public/common", "//content/public/common",
...@@ -538,7 +538,7 @@ if (is_android) { ...@@ -538,7 +538,7 @@ if (is_android) {
deps = [ deps = [
":weblayer_lib_webview", ":weblayer_lib_webview",
"//base", "//base",
"//content/public/app:both", "//content/public/app",
] ]
configs -= [ "//build/config/android:hide_all_but_jni_onload" ] configs -= [ "//build/config/android:hide_all_but_jni_onload" ]
configs += [ "//build/config/android:hide_all_but_jni" ] configs += [ "//build/config/android:hide_all_but_jni" ]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment