Commit 91d04092 authored by Nico Weber's avatar Nico Weber Committed by Commit Bot

Reformat all gn files in /tools/, /url/

`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: I730b20897134a058e4f98b5279d4dc3409c6cab7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2012602
Auto-Submit: Nico Weber <thakis@chromium.org>
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: default avatarDaniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#733900}
parent eada65d6
......@@ -3,9 +3,7 @@
# found in the LICENSE file.
static_library("cygprofile_win") {
sources = [
"cygprofile.cc",
]
sources = [ "cygprofile.cc" ]
# Don't instrument this library.
configs -= [ "//build/config/win:default_cygprofile_instrumentation" ]
......
......@@ -3,16 +3,10 @@
# found in the LICENSE file.
executable("dump_process") {
sources = [
"dump_process.cc",
]
deps = [
"//base",
]
sources = [ "dump_process.cc" ]
deps = [ "//base" ]
}
group("all") {
deps = [
":dump_process",
]
deps = [ ":dump_process" ]
}
......@@ -12,15 +12,11 @@ action("grit_sources") {
depfile = "$target_out_dir/grit_sources.d"
script = "stamp_grit_sources.py"
inputs = [
"grit.py",
]
inputs = [ "grit.py" ]
# Note that we can't call this "grit_sources.stamp" because that file is
# implicitly created by GN for script actions.
outputs = [
"$target_out_dir/grit_sources.script.stamp",
]
outputs = [ "$target_out_dir/grit_sources.script.stamp" ]
args = [
rebase_path("//tools/grit", root_build_dir),
......@@ -47,8 +43,6 @@ if (is_mac && is_asan) {
bundle_root_dir = "$target_out_dir/$target_name"
bundle_executable_dir = bundle_root_dir
public_deps = [
"//third_party/brotli:brotli($host_toolchain)",
]
public_deps = [ "//third_party/brotli:brotli($host_toolchain)" ]
}
}
......@@ -271,12 +271,8 @@ template("grit") {
script = "//tools/grit/grit.py"
depfile = "$target_gen_dir/$target_name.d"
inputs = [
invoker.source,
]
deps = [
"//tools/grit:grit_sources",
]
inputs = [ invoker.source ]
deps = [ "//tools/grit:grit_sources" ]
outputs = [ "${depfile}.stamp" ] + _grit_outputs + _pak_info_outputs
_grit_flags = grit_defines
......@@ -455,13 +451,9 @@ template("grit") {
# grit above rather than this library. This target needs to depend on the
# action publicly so other scripts can take the outputs from the grit
# script as inputs.
public_deps = [
":$_grit_custom_target",
]
public_deps = [ ":$_grit_custom_target" ]
deps = [
"//base",
]
deps = [ "//base" ]
if (defined(invoker.public_configs)) {
public_configs += invoker.public_configs
......
......@@ -54,9 +54,7 @@ template("repack") {
script = "//tools/grit/pak_util.py"
inputs = invoker.sources
outputs = [
invoker.output,
]
outputs = [ invoker.output ]
args = [ "repack" ]
if (defined(invoker.repack_whitelist)) {
......@@ -80,20 +78,12 @@ template("repack") {
"visibility",
])
public_deps = [
":$_repack_target_name",
]
sources = [
invoker.output,
]
public_deps = [ ":$_repack_target_name" ]
sources = [ invoker.output ]
if (defined(invoker.bundle_output)) {
outputs = [
invoker.bundle_output,
]
outputs = [ invoker.bundle_output ]
} else {
outputs = [
"{{bundle_resources_dir}}/{{source_file_part}}",
]
outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
}
}
}
......
......@@ -22,9 +22,7 @@ executable("ipc_fuzzer") {
"//base/util/type_safety",
"//tools/ipc_fuzzer/message_lib:ipc_message_lib",
]
public_deps = [
"//ipc",
]
public_deps = [ "//ipc" ]
if (is_asan && is_chromeos) {
# Compiling fuzzer.cc with ASan takes too long, see
# http://crbug.com/360158.
......
executable("get_accessible_interfaces") {
sources = [
"get_accessible_interfaces.cc",
]
sources = [ "get_accessible_interfaces.cc" ]
deps = [
"//base",
......
......@@ -5,10 +5,6 @@
loadable_module("ipc_message_dump") {
testonly = true
configs += [ "//tools/ipc_fuzzer:ipc_fuzzer_tool_config" ]
deps = [
"//tools/ipc_fuzzer/message_lib:ipc_message_lib",
]
sources = [
"message_dump.cc",
]
deps = [ "//tools/ipc_fuzzer/message_lib:ipc_message_lib" ]
sources = [ "message_dump.cc" ]
}
......@@ -9,9 +9,7 @@ executable("ipc_message_util") {
"//third_party/re2",
"//tools/ipc_fuzzer/message_lib:ipc_message_lib",
]
sources = [
"message_util.cc",
]
sources = [ "message_util.cc" ]
}
executable("ipc_message_list") {
......@@ -22,7 +20,5 @@ executable("ipc_message_list") {
"//components/nacl/common:buildflags",
"//tools/ipc_fuzzer/message_lib:ipc_message_lib",
]
sources = [
"message_list.cc",
]
sources = [ "message_list.cc" ]
}
......@@ -8,7 +8,5 @@ source_set("generated_api_util") {
"util.cc",
"util.h",
]
deps = [
"//base",
]
deps = [ "//base" ]
}
......@@ -36,9 +36,7 @@ generated_types("generated_types") {
root_namespace = "test::api::%(namespace)s"
deps = [
"//extensions/buildflags",
]
deps = [ "//extensions/buildflags" ]
}
json_features("features_compiler_test") {
......@@ -73,9 +71,7 @@ source_set("unit_tests") {
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
public_deps = [
":features_compiler_test",
]
public_deps = [ ":features_compiler_test" ]
deps = [
":generated_types",
......
......@@ -53,7 +53,6 @@ generator_sources = [
copy("generator") {
sources = generator_sources
outputs = [
"$root_out_dir/{{source_root_relative_dir}}/{{source_file_part}}",
]
outputs =
[ "$root_out_dir/{{source_root_relative_dir}}/{{source_file_part}}" ]
}
......@@ -9,9 +9,7 @@ action("gen_structured_events") {
"//tools/metrics/structured/events_template.py",
"//tools/metrics/structured/gen_events.py",
]
sources = [
"//tools/metrics/structured/structured.xml",
]
sources = [ "//tools/metrics/structured/structured.xml" ]
outdir = "$target_gen_dir"
......
......@@ -25,13 +25,9 @@ group("vr_perf_tests") {
"//chrome/test/data/xr/webvr_info/samples/",
"//third_party/webxr_test_pages/webxr-samples/",
]
data_deps = [
"//testing:run_perf_test",
]
data_deps = [ "//testing:run_perf_test" ]
deps = [
"//tools/perf:perf",
]
deps = [ "//tools/perf:perf" ]
if (is_android) {
data += [
......@@ -71,9 +67,7 @@ action("generate_vr_assets_profile") {
"//chrome/browser/resources/vr/assets/VERSION",
"//chrome/browser/resources/vr/assets/vr_assets_component_files.json",
]
outputs = [
"$target_gen_dir/vr_assets_profile",
]
outputs = [ "$target_gen_dir/vr_assets_profile" ]
args = [
"--output",
rebase_path(target_gen_dir, root_build_dir),
......
......@@ -12,7 +12,5 @@ shared_library("chromeexts") {
"commands/hwnd_command.h",
]
deps = [
"//base",
]
deps = [ "//base" ]
}
......@@ -98,9 +98,7 @@ component("url") {
if (is_android) {
static_library("origin_android") {
sources = [
"android/origin_android.cc",
]
sources = [ "android/origin_android.cc" ]
deps = [
":url",
......@@ -111,18 +109,12 @@ if (is_android) {
}
android_library("url_java") {
sources = [
"android/java/src/org/chromium/url/IDNStringUtil.java",
]
deps = [
"//base:base_java",
]
sources = [ "android/java/src/org/chromium/url/IDNStringUtil.java" ]
deps = [ "//base:base_java" ]
}
android_library("origin_java") {
sources = [
"android/java/src/org/chromium/url/Origin.java",
]
sources = [ "android/java/src/org/chromium/url/Origin.java" ]
deps = [
"//base:base_java",
"//url/mojom:url_mojom_origin_java",
......@@ -208,9 +200,7 @@ test("url_perftests") {
}
fuzzer_test("gurl_fuzzer") {
sources = [
"gurl_fuzzer.cc",
]
sources = [ "gurl_fuzzer.cc" ]
deps = [
":url",
"//base",
......
......@@ -17,17 +17,13 @@ component("url_ipc") {
"//ipc",
"//url",
]
deps = [
"//base",
]
deps = [ "//base" ]
}
# IPC unit tests aren't build on iOS.
if (!is_ios) {
test("url_ipc_unittests") {
sources = [
"url_param_traits_unittest.cc",
]
sources = [ "url_param_traits_unittest.cc" ]
deps = [
":url_ipc",
......
......@@ -6,16 +6,12 @@ import("//mojo/public/tools/bindings/mojom.gni")
mojom("url_mojom_gurl") {
generate_java = true
sources = [
"url.mojom",
]
sources = [ "url.mojom" ]
}
mojom("url_mojom_origin") {
generate_java = true
sources = [
"origin.mojom",
]
sources = [ "origin.mojom" ]
public_deps = [
":url_mojom_gurl",
......@@ -26,9 +22,7 @@ mojom("url_mojom_origin") {
}
mojom("test_url_mojom_gurl") {
sources = [
"url_test.mojom",
]
sources = [ "url_test.mojom" ]
public_deps = [
":url_mojom_gurl",
......
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