Commit fde9dfa4 authored by Nico Weber's avatar Nico Weber Committed by Commit Bot

Reformat all gn files in /chromecast/

`gn format` recently changed its formatting behavior
for deps, source, and a few other elements when they
are assigned (with =) single-element lists to be consistent
with the formatting of updates (with +=) with single-element.

Now that we've rolled in a GN binary with the change,
reformat all files so that people don't get presubmit
warnings due to this.

This CL was uploaded by me.

Bug: 1041419
Change-Id: I872f425930fdc439c8b807abd87199cea0c058c0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2012601
Auto-Submit: Nico Weber <thakis@chromium.org>
Reviewed-by: default avatarLuke Halliwell (slow) <halliwell@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#733611}
parent 586dd84b
...@@ -11,9 +11,7 @@ cast_source_set("queryable_data") { ...@@ -11,9 +11,7 @@ cast_source_set("queryable_data") {
"queryable_data.h", "queryable_data.h",
] ]
deps = [ deps = [ "//base" ]
"//base",
]
} }
cast_source_set("resource_delegate") { cast_source_set("resource_delegate") {
......
...@@ -36,9 +36,7 @@ generated_json_strings("generated_api_json_strings") { ...@@ -36,9 +36,7 @@ generated_json_strings("generated_api_json_strings") {
bundle_name = "Cast" bundle_name = "Cast"
schema_include_rules = extensions_api_schema_include_rules schema_include_rules = extensions_api_schema_include_rules
deps = [ deps = [ "//extensions/common/api" ]
"//extensions/common/api",
]
visibility = [ ":api" ] visibility = [ ":api" ]
} }
...@@ -58,34 +56,26 @@ generated_types("generated_api_types") { ...@@ -58,34 +56,26 @@ generated_types("generated_api_types") {
sources = schema_sources sources = schema_sources
schema_include_rules = extensions_api_schema_include_rules schema_include_rules = extensions_api_schema_include_rules
deps = [ deps = [ "//extensions/common/api" ]
"//extensions/common/api",
]
visibility = [ ":api" ] visibility = [ ":api" ]
} }
json_features("cast_api_features") { json_features("cast_api_features") {
feature_type = "APIFeature" feature_type = "APIFeature"
method_name = "AddCastAPIFeatures" method_name = "AddCastAPIFeatures"
sources = [ sources = [ "_api_features.json" ]
"_api_features.json",
]
} }
json_features("cast_permission_features") { json_features("cast_permission_features") {
feature_type = "PermissionFeature" feature_type = "PermissionFeature"
method_name = "AddCastPermissionFeatures" method_name = "AddCastPermissionFeatures"
sources = [ sources = [ "_permission_features.json" ]
"_permission_features.json",
]
} }
json_features("cast_manifest_features") { json_features("cast_manifest_features") {
feature_type = "ManifestFeature" feature_type = "ManifestFeature"
method_name = "AddCastManifestFeatures" method_name = "AddCastManifestFeatures"
sources = [ sources = [ "_manifest_features.json" ]
"_manifest_features.json",
]
} }
# Public Targets # Public Targets
......
...@@ -19,7 +19,5 @@ mojom("mojom") { ...@@ -19,7 +19,5 @@ mojom("mojom") {
"service_connector.mojom", "service_connector.mojom",
] ]
public_deps = [ public_deps = [ "//mojo/public/mojom/base" ]
"//mojo/public/mojom/base",
]
} }
...@@ -36,25 +36,15 @@ group("media") { ...@@ -36,25 +36,15 @@ group("media") {
# Handles the various differences between (ATV, Things, desktop, device builds). # Handles the various differences between (ATV, Things, desktop, device builds).
group("libcast_media") { group("libcast_media") {
if (is_android) { if (is_android) {
deps = [ deps = [ "//chromecast/media/cma/backend/android:cast_media_android" ]
"//chromecast/media/cma/backend/android:cast_media_android",
]
} else if (is_fuchsia) { } else if (is_fuchsia) {
deps = [ deps = [ "//chromecast/media/cma/backend/fuchsia:media_backend" ]
"//chromecast/media/cma/backend/fuchsia:media_backend",
]
} else if (cast_static_media_lib_target != "") { } else if (cast_static_media_lib_target != "") {
deps = [ deps = [ "$cast_static_media_lib_target" ]
"$cast_static_media_lib_target",
]
} else if (is_cast_desktop_build) { } else if (is_cast_desktop_build) {
deps = [ deps = [ "//chromecast/media/cma/backend/desktop" ]
"//chromecast/media/cma/backend/desktop",
]
} else { } else {
deps = [ deps = [ "//chromecast/media/cma/backend:libcast_media_1.0" ]
"//chromecast/media/cma/backend:libcast_media_1.0",
]
} }
if (cast_volume_control_in_avsettings) { if (cast_volume_control_in_avsettings) {
......
...@@ -19,9 +19,7 @@ cast_source_set("audio_io_thread") { ...@@ -19,9 +19,7 @@ cast_source_set("audio_io_thread") {
"audio_io_thread.h", "audio_io_thread.h",
] ]
deps = [ deps = [ "//base" ]
"//base",
]
} }
cast_source_set("processing") { cast_source_set("processing") {
...@@ -109,19 +107,13 @@ if (is_android) { ...@@ -109,19 +107,13 @@ if (is_android) {
} }
source_set("dummy_external_audio_pipeline") { source_set("dummy_external_audio_pipeline") {
sources = [ sources = [ "external_audio_pipeline_dummy.cc" ]
"external_audio_pipeline_dummy.cc",
]
public_deps = [ public_deps = [ "//chromecast/public/media" ]
"//chromecast/public/media",
]
} }
cast_shared_library("libcast_external_audio_pipeline_1.0") { cast_shared_library("libcast_external_audio_pipeline_1.0") {
public_deps = [ public_deps = [ ":dummy_external_audio_pipeline" ]
":dummy_external_audio_pipeline",
]
} }
source_set("fake_external_audio_pipeline") { source_set("fake_external_audio_pipeline") {
...@@ -157,17 +149,11 @@ buildflag_header("audio_buildflags") { ...@@ -157,17 +149,11 @@ buildflag_header("audio_buildflags") {
cast_source_set("test_support") { cast_source_set("test_support") {
testonly = true testonly = true
sources = [ sources = [ "mock_audio_input_callback.h" ]
"mock_audio_input_callback.h",
]
public_deps = [ public_deps = [ "//testing/gmock" ]
"//testing/gmock",
]
deps = [ deps = [ "//media" ]
"//media",
]
} }
cast_source_set("unittests") { cast_source_set("unittests") {
......
...@@ -7,9 +7,7 @@ import("//testing/libfuzzer/fuzzer_test.gni") ...@@ -7,9 +7,7 @@ import("//testing/libfuzzer/fuzzer_test.gni")
import("//testing/test.gni") import("//testing/test.gni")
cast_source_set("common") { cast_source_set("common") {
sources = [ sources = [ "constants.h" ]
"constants.h",
]
} }
cast_source_set("utils") { cast_source_set("utils") {
...@@ -18,9 +16,7 @@ cast_source_set("utils") { ...@@ -18,9 +16,7 @@ cast_source_set("utils") {
"message_parsing_utils.h", "message_parsing_utils.h",
] ]
public_deps = [ public_deps = [ ":common" ]
":common",
]
deps = [ deps = [
"//base", "//base",
...@@ -35,9 +31,7 @@ cast_source_set("receiver") { ...@@ -35,9 +31,7 @@ cast_source_set("receiver") {
"capture_service_receiver.h", "capture_service_receiver.h",
] ]
public_deps = [ public_deps = [ ":common" ]
":common",
]
deps = [ deps = [
":utils", ":utils",
...@@ -70,9 +64,7 @@ cast_source_set("unittests") { ...@@ -70,9 +64,7 @@ cast_source_set("unittests") {
} }
fuzzer_test("message_parsing_fuzzer") { fuzzer_test("message_parsing_fuzzer") {
sources = [ sources = [ "message_parsing_fuzzer.cc" ]
"message_parsing_fuzzer.cc",
]
deps = [ deps = [
":utils", ":utils",
"//base", "//base",
......
...@@ -14,9 +14,7 @@ buildflag_header("buildflags") { ...@@ -14,9 +14,7 @@ buildflag_header("buildflags") {
proto_library("proto") { proto_library("proto") {
proto_out_dir = "chromecast/media/audio/mixer_service" proto_out_dir = "chromecast/media/audio/mixer_service"
sources = [ sources = [ "mixer_service.proto" ]
"mixer_service.proto",
]
} }
cast_source_set("common") { cast_source_set("common") {
...@@ -112,9 +110,7 @@ cast_source_set("loopback_connection") { ...@@ -112,9 +110,7 @@ cast_source_set("loopback_connection") {
"loopback_connection.h", "loopback_connection.h",
] ]
public_deps = [ public_deps = [ ":common" ]
":common",
]
deps = [ deps = [
":connection", ":connection",
......
...@@ -18,9 +18,7 @@ cast_source_set("receiver") { ...@@ -18,9 +18,7 @@ cast_source_set("receiver") {
"//net", "//net",
] ]
public_deps = [ public_deps = [ "//chromecast/media/audio/mixer_service:proto" ]
"//chromecast/media/audio/mixer_service:proto",
]
} }
cast_source_set("receiver_cma") { cast_source_set("receiver_cma") {
......
...@@ -19,17 +19,13 @@ cast_source_set("avsettings_dummy") { ...@@ -19,17 +19,13 @@ cast_source_set("avsettings_dummy") {
"avsettings_dummy.h", "avsettings_dummy.h",
] ]
deps = [ deps = [ "//chromecast/public" ]
"//chromecast/public",
]
} }
# Target for OEM partners to override avsettings shared library, i.e. # Target for OEM partners to override avsettings shared library, i.e.
# libcast_avsettings_1.0.so. # libcast_avsettings_1.0.so.
cast_shared_library("libcast_avsettings_1.0") { cast_shared_library("libcast_avsettings_1.0") {
sources = [ sources = [ "avsettings_shlib.cc" ]
"avsettings_shlib.cc",
]
deps = [ deps = [
":avsettings_buildflags", ":avsettings_buildflags",
......
...@@ -89,9 +89,7 @@ cast_source_set("media_codec_support") { ...@@ -89,9 +89,7 @@ cast_source_set("media_codec_support") {
"media_codec_support.h", "media_codec_support.h",
] ]
public_deps = [ public_deps = [ "//chromecast/public/media" ]
"//chromecast/public/media",
]
deps = [ deps = [
"//base", "//base",
...@@ -105,9 +103,7 @@ cast_source_set("video_plane_controller") { ...@@ -105,9 +103,7 @@ cast_source_set("video_plane_controller") {
"video_plane_controller.h", "video_plane_controller.h",
] ]
public_deps = [ public_deps = [ "//chromecast/public" ]
"//chromecast/public",
]
deps = [ deps = [
"//base", "//base",
......
...@@ -79,9 +79,7 @@ cast_source_set("unittests") { ...@@ -79,9 +79,7 @@ cast_source_set("unittests") {
defines = [ "ENABLE_VIDEO_WITH_MIXED_AUDIO" ] defines = [ "ENABLE_VIDEO_WITH_MIXED_AUDIO" ]
} }
data = [ data = [ "//media/test/data/" ]
"//media/test/data/",
]
# MultizoneBackendTest verifies rendering delay reported by the backend. # MultizoneBackendTest verifies rendering delay reported by the backend.
if (supports_multizone) { if (supports_multizone) {
......
...@@ -57,9 +57,7 @@ cast_source_set("backend") { ...@@ -57,9 +57,7 @@ cast_source_set("backend") {
# libcast_media_1.0.so. This target is only used to build executables # libcast_media_1.0.so. This target is only used to build executables
# with correct linkage information. # with correct linkage information.
cast_shared_library("libcast_media_1.0") { cast_shared_library("libcast_media_1.0") {
sources = [ sources = [ "cast_media_dummy.cc" ]
"cast_media_dummy.cc",
]
deps = [ deps = [
":audio_buildflags", ":audio_buildflags",
...@@ -95,9 +93,7 @@ cast_source_set("null_video") { ...@@ -95,9 +93,7 @@ cast_source_set("null_video") {
} }
cast_source_set("public") { cast_source_set("public") {
sources = [ sources = [ "system_volume_control.h" ]
"system_volume_control.h",
]
deps = [ deps = [
"//base", "//base",
...@@ -106,9 +102,7 @@ cast_source_set("public") { ...@@ -106,9 +102,7 @@ cast_source_set("public") {
} }
cast_source_set("av_sync_dummy") { cast_source_set("av_sync_dummy") {
sources = [ sources = [ "av_sync_dummy.cc" ]
"av_sync_dummy.cc",
]
deps = [ deps = [
"//base", "//base",
...@@ -117,9 +111,7 @@ cast_source_set("av_sync_dummy") { ...@@ -117,9 +111,7 @@ cast_source_set("av_sync_dummy") {
} }
cast_source_set("audio_codec_support") { cast_source_set("audio_codec_support") {
sources = [ sources = [ "media_codec_support_cast_audio.cc" ]
"media_codec_support_cast_audio.cc",
]
deps = [ deps = [
"//base", "//base",
"//chromecast/public", "//chromecast/public",
...@@ -133,9 +125,7 @@ cast_source_set("cast_audio_json") { ...@@ -133,9 +125,7 @@ cast_source_set("cast_audio_json") {
"cast_audio_json.h", "cast_audio_json.h",
] ]
deps = [ deps = [ "//base" ]
"//base",
]
} }
cast_source_set("volume_map") { cast_source_set("volume_map") {
...@@ -188,9 +178,7 @@ cast_source_set("for_mixer_audio") { ...@@ -188,9 +178,7 @@ cast_source_set("for_mixer_audio") {
test("cast_audio_backend_unittests") { test("cast_audio_backend_unittests") {
testonly = true testonly = true
sources = [ sources = [ "volume_map_unittest.cc" ]
"volume_map_unittest.cc",
]
deps = [ deps = [
":cast_audio_json", ":cast_audio_json",
......
...@@ -11,9 +11,7 @@ import("//testing/test.gni") ...@@ -11,9 +11,7 @@ import("//testing/test.gni")
assert(use_alsa) assert(use_alsa)
cast_source_set("libcast_media_1.0_audio") { cast_source_set("libcast_media_1.0_audio") {
sources = [ sources = [ "cast_media_shlib.cc" ]
"cast_media_shlib.cc",
]
deps = [ deps = [
":volume_control", ":volume_control",
......
...@@ -15,9 +15,7 @@ cast_source_set("post_processor_paths") { ...@@ -15,9 +15,7 @@ cast_source_set("post_processor_paths") {
"post_processor_paths.cc", "post_processor_paths.cc",
"post_processor_paths.h", "post_processor_paths.h",
] ]
deps = [ deps = [ "//base" ]
"//base",
]
} }
cast_source_set("loopback") { cast_source_set("loopback") {
......
...@@ -17,9 +17,7 @@ cast_source_set("post_processor_wrapper") { ...@@ -17,9 +17,7 @@ cast_source_set("post_processor_wrapper") {
} }
cast_shared_library("libcast_governor_2.0") { cast_shared_library("libcast_governor_2.0") {
sources = [ sources = [ "post_processor_name.cc" ]
"post_processor_name.cc",
]
defines = [ defines = [
"DEFINED_POSTPROCESSOR_NAME=chromecast::media::Governor", "DEFINED_POSTPROCESSOR_NAME=chromecast::media::Governor",
"DEFINED_POSTPROCESSOR_HEADER=chromecast/media/cma/backend/mixer/post_processors/governor.h", "DEFINED_POSTPROCESSOR_HEADER=chromecast/media/cma/backend/mixer/post_processors/governor.h",
...@@ -49,9 +47,7 @@ cast_source_set("governor") { ...@@ -49,9 +47,7 @@ cast_source_set("governor") {
} }
cast_shared_library("libcast_saturated_gain_2.0") { cast_shared_library("libcast_saturated_gain_2.0") {
sources = [ sources = [ "post_processor_name.cc" ]
"post_processor_name.cc",
]
defines = [ defines = [
"DEFINED_POSTPROCESSOR_NAME=chromecast::media::SaturatedGain", "DEFINED_POSTPROCESSOR_NAME=chromecast::media::SaturatedGain",
"DEFINED_POSTPROCESSOR_HEADER=chromecast/media/cma/backend/mixer/post_processors/saturated_gain.h", "DEFINED_POSTPROCESSOR_HEADER=chromecast/media/cma/backend/mixer/post_processors/saturated_gain.h",
......
...@@ -21,9 +21,7 @@ cast_source_set("av_sync_video") { ...@@ -21,9 +21,7 @@ cast_source_set("av_sync_video") {
} }
cast_source_set("cast_media_shlib_common") { cast_source_set("cast_media_shlib_common") {
sources = [ sources = [ "cast_media_shlib_common.cc" ]
"cast_media_shlib_common.cc",
]
deps = [ deps = [
"//base", "//base",
"//chromecast/public/media", "//chromecast/public/media",
...@@ -31,9 +29,7 @@ cast_source_set("cast_media_shlib_common") { ...@@ -31,9 +29,7 @@ cast_source_set("cast_media_shlib_common") {
} }
cast_source_set("cast_media_shlib_default") { cast_source_set("cast_media_shlib_default") {
sources = [ sources = [ "cast_media_shlib_default.cc" ]
"cast_media_shlib_default.cc",
]
deps = [ deps = [
":cast_media_shlib_common", ":cast_media_shlib_common",
"//base", "//base",
......
...@@ -35,9 +35,7 @@ cast_source_set("base") { ...@@ -35,9 +35,7 @@ cast_source_set("base") {
"simple_media_task_runner.h", "simple_media_task_runner.h",
] ]
public_deps = [ public_deps = [ "//chromecast/public/media" ]
"//chromecast/public/media",
]
deps = [ deps = [
"//base", "//base",
......
...@@ -5,9 +5,7 @@ ...@@ -5,9 +5,7 @@
import("//mojo/public/tools/bindings/mojom.gni") import("//mojo/public/tools/bindings/mojom.gni")
mojom("mojom") { mojom("mojom") {
sources = [ sources = [ "video_geometry_setter.mojom" ]
"video_geometry_setter.mojom",
]
public_deps = [ public_deps = [
"//mojo/public/mojom/base", "//mojo/public/mojom/base",
......
...@@ -8,23 +8,15 @@ import("//chromecast/chromecast.gni") ...@@ -8,23 +8,15 @@ import("//chromecast/chromecast.gni")
import("//components/vector_icons/vector_icons.gni") import("//components/vector_icons/vector_icons.gni")
cast_source_set("public") { cast_source_set("public") {
sources = [ sources = [ "media_overlay.h" ]
"media_overlay.h",
]
deps = [ deps = [ "//base" ]
"//base",
]
} }
cast_source_set("aura_components") { cast_source_set("aura_components") {
sources = [ sources = [ "aura_components.h" ]
"aura_components.h",
]
deps = [ deps = [ ":public" ]
":public",
]
if (use_aura) { if (use_aura) {
sources += [ "aura_components.cc" ] sources += [ "aura_components.cc" ]
......
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