Skip to content

Commit

Permalink
Reformat all gn files in /courgette.
Browse files Browse the repository at this point in the history
`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}
  • Loading branch information
nico authored and Commit Bot committed Jan 13, 2020
1 parent 0792dc5 commit dd34863
Showing 1 changed file with 14 additions and 42 deletions.
56 changes: 14 additions & 42 deletions courgette/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,8 @@ source_set("courgette_common") {
}

source_set("paged_array") {
sources = [
"third_party/bsdiff/paged_array.h",
]
deps = [
"//base",
]
sources = [ "third_party/bsdiff/paged_array.h" ]
deps = [ "//base" ]
}

source_set("bsdiff") {
Expand Down Expand Up @@ -132,9 +128,7 @@ if (!is_ios) {
output_name = "courgette64"
}

sources = [
"courgette_tool.cc",
]
sources = [ "courgette_tool.cc" ]

if (is_win) {
ldflags = [ "/LARGEADDRESSAWARE" ]
Expand All @@ -148,9 +142,7 @@ if (!is_ios) {
}

executable("courgette_minimal_tool") {
sources = [
"courgette_minimal_tool.cc",
]
sources = [ "courgette_minimal_tool.cc" ]

deps = [
":courgette_lib",
Expand All @@ -165,15 +157,9 @@ if (!is_ios) {
# in the official build archives, remove this once they have been updated.
# https://crbug.com/629243
copy("copy_courgette_binaries") {
sources = [
"$root_out_dir/courgette64.exe",
]
outputs = [
"$root_out_dir/courgette.exe",
]
deps = [
":courgette",
]
sources = [ "$root_out_dir/courgette64.exe" ]
outputs = [ "$root_out_dir/courgette.exe" ]
deps = [ ":courgette" ]
}
} else {
# Make sure that we have a copy of courgette64.exe(.pdb) in the root out
Expand All @@ -190,28 +176,16 @@ if (!is_ios) {
if (symbol_level > 0) {
copy("copy_courgette_pdb") {
visibility = [ ":copy_courgette_binaries" ]
sources = [
"$courgette64_out_dir/courgette64.exe.pdb",
]
outputs = [
"$root_out_dir/{{source_file_part}}",
]
deps = [
courgette64_label,
]
sources = [ "$courgette64_out_dir/courgette64.exe.pdb" ]
outputs = [ "$root_out_dir/{{source_file_part}}" ]
deps = [ courgette64_label ]
}
}

copy("copy_courgette_binaries") {
sources = [
"$courgette64_out_dir/courgette64.exe",
]
outputs = [
"$root_out_dir/{{source_file_part}}",
]
deps = [
courgette64_label,
]
sources = [ "$courgette64_out_dir/courgette64.exe" ]
outputs = [ "$root_out_dir/{{source_file_part}}" ]
deps = [ courgette64_label ]
if (symbol_level > 0) {
deps += [ ":copy_courgette_pdb" ]
}
Expand Down Expand Up @@ -259,9 +233,7 @@ test("courgette_unittests") {
"//testing/gtest",
]

data = [
"testdata/",
]
data = [ "testdata/" ]
}

test("courgette_fuzz") {
Expand Down

0 comments on commit dd34863

Please sign in to comment.