0

Reformat all gn files in /courgette.

`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 git cl split.

R=wfh@chromium.org

Bug: 1041419
Change-Id: I206e7e4c8e89f16b2349ed1cd361a63524e688a3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1996999
Auto-Submit: Nico Weber <thakis@chromium.org>
Reviewed-by: Will Harris <wfh@chromium.org>
Commit-Queue: Will Harris <wfh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#730753}
This commit is contained in:
Nico Weber
2020-01-13 20:02:26 +00:00
committed by Commit Bot
parent 0792dc5faa
commit dd348636f6

@ -84,12 +84,8 @@ source_set("courgette_common") {
} }
source_set("paged_array") { source_set("paged_array") {
sources = [ sources = [ "third_party/bsdiff/paged_array.h" ]
"third_party/bsdiff/paged_array.h", deps = [ "//base" ]
]
deps = [
"//base",
]
} }
source_set("bsdiff") { source_set("bsdiff") {
@ -132,9 +128,7 @@ if (!is_ios) {
output_name = "courgette64" output_name = "courgette64"
} }
sources = [ sources = [ "courgette_tool.cc" ]
"courgette_tool.cc",
]
if (is_win) { if (is_win) {
ldflags = [ "/LARGEADDRESSAWARE" ] ldflags = [ "/LARGEADDRESSAWARE" ]
@ -148,9 +142,7 @@ if (!is_ios) {
} }
executable("courgette_minimal_tool") { executable("courgette_minimal_tool") {
sources = [ sources = [ "courgette_minimal_tool.cc" ]
"courgette_minimal_tool.cc",
]
deps = [ deps = [
":courgette_lib", ":courgette_lib",
@ -165,15 +157,9 @@ if (!is_ios) {
# in the official build archives, remove this once they have been updated. # in the official build archives, remove this once they have been updated.
# https://crbug.com/629243 # https://crbug.com/629243
copy("copy_courgette_binaries") { copy("copy_courgette_binaries") {
sources = [ sources = [ "$root_out_dir/courgette64.exe" ]
"$root_out_dir/courgette64.exe", outputs = [ "$root_out_dir/courgette.exe" ]
] deps = [ ":courgette" ]
outputs = [
"$root_out_dir/courgette.exe",
]
deps = [
":courgette",
]
} }
} else { } else {
# Make sure that we have a copy of courgette64.exe(.pdb) in the root out # Make sure that we have a copy of courgette64.exe(.pdb) in the root out
@ -190,28 +176,16 @@ if (!is_ios) {
if (symbol_level > 0) { if (symbol_level > 0) {
copy("copy_courgette_pdb") { copy("copy_courgette_pdb") {
visibility = [ ":copy_courgette_binaries" ] visibility = [ ":copy_courgette_binaries" ]
sources = [ sources = [ "$courgette64_out_dir/courgette64.exe.pdb" ]
"$courgette64_out_dir/courgette64.exe.pdb", outputs = [ "$root_out_dir/{{source_file_part}}" ]
] deps = [ courgette64_label ]
outputs = [
"$root_out_dir/{{source_file_part}}",
]
deps = [
courgette64_label,
]
} }
} }
copy("copy_courgette_binaries") { copy("copy_courgette_binaries") {
sources = [ sources = [ "$courgette64_out_dir/courgette64.exe" ]
"$courgette64_out_dir/courgette64.exe", outputs = [ "$root_out_dir/{{source_file_part}}" ]
] deps = [ courgette64_label ]
outputs = [
"$root_out_dir/{{source_file_part}}",
]
deps = [
courgette64_label,
]
if (symbol_level > 0) { if (symbol_level > 0) {
deps += [ ":copy_courgette_pdb" ] deps += [ ":copy_courgette_pdb" ]
} }
@ -259,9 +233,7 @@ test("courgette_unittests") {
"//testing/gtest", "//testing/gtest",
] ]
data = [ data = [ "testdata/" ]
"testdata/",
]
} }
test("courgette_fuzz") { test("courgette_fuzz") {