Skip to content

Commit

Permalink
./ci/check_gn_format.py
Browse files Browse the repository at this point in the history
  • Loading branch information
liyuqian committed Mar 31, 2020
1 parent 2d6ee72 commit 868a228
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 11 deletions.
6 changes: 3 additions & 3 deletions fml/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ source_set("fml") {
"eintr_wrapper.h",
"file.cc",
"file.h",
"raster_thread_merger.cc",
"raster_thread_merger.h",
"hash_combine.h",
"icu_util.cc",
"icu_util.h",
Expand Down Expand Up @@ -61,6 +59,8 @@ source_set("fml") {
"paths.cc",
"paths.h",
"posix_wrappers.h",
"raster_thread_merger.cc",
"raster_thread_merger.h",
"size.h",
"synchronization/atomic_object.h",
"synchronization/count_down_latch.cc",
Expand Down Expand Up @@ -232,7 +232,6 @@ executable("fml_unittests") {
"base32_unittest.cc",
"command_line_unittest.cc",
"file_unittest.cc",
"raster_thread_merger_unittests.cc",
"hash_combine_unittests.cc",
"memory/ref_counted_unittest.cc",
"memory/weak_ptr_unittest.cc",
Expand All @@ -241,6 +240,7 @@ executable("fml_unittests") {
"message_loop_unittests.cc",
"message_unittests.cc",
"paths_unittests.cc",
"raster_thread_merger_unittests.cc",
"synchronization/count_down_latch_unittests.cc",
"synchronization/semaphore_unittest.cc",
"synchronization/sync_switch_unittest.cc",
Expand Down
3 changes: 1 addition & 2 deletions runtime/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ source_set("runtime") {
# 3. In the executable can enjoy the advantages of the windows preload
# mechanism, speed up I/O.
if (is_win) {
if (flutter_runtime_mode == "profile" ||
flutter_runtime_mode == "release") {
if (flutter_runtime_mode == "profile" || flutter_runtime_mode == "release") {
deps += [ "//flutter/lib/snapshot" ]
}
}
Expand Down
3 changes: 1 addition & 2 deletions shell/platform/fuchsia/dart_runner/embedder/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ template("create_aot_snapshot") {
# No asserts in debug or release product.
# No asserts in release with flutter_profile=true (non-product)
# Yes asserts in non-product debug.
if (!invoker.product &&
(!(flutter_runtime_mode == "profile") || is_debug)) {
if (!invoker.product && (!(flutter_runtime_mode == "profile") || is_debug)) {
args += [ "--enable_asserts" ]
}
args += [ rebase_path(shim_kernel) ]
Expand Down
3 changes: 1 addition & 2 deletions shell/platform/fuchsia/dart_runner/kernel/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ template("create_kernel_core_snapshot") {
# No asserts in debug or release product.
# No asserts in release with flutter_profile=true (non-product)
# Yes asserts in non-product debug.
if (!invoker.product &&
(is_debug || !(flutter_runtime_mode == "profile"))) {
if (!invoker.product && (is_debug || !(flutter_runtime_mode == "profile"))) {
args += [ "--enable_asserts" ]
}
args += [ rebase_path(platform_dill) ]
Expand Down
3 changes: 1 addition & 2 deletions shell/platform/fuchsia/flutter/kernel/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ template("core_snapshot") {
# No asserts in debug or release product.
# No asserts in release with flutter_profile=true (non-product)
# Yes asserts in non-product debug.
if (!invoker.product &&
(is_debug || !(flutter_runtime_mode == "profile"))) {
if (!invoker.product && (is_debug || !(flutter_runtime_mode == "profile"))) {
args += [ "--enable_asserts" ]
}
args += [ rebase_path(platform_dill) ]
Expand Down

0 comments on commit 868a228

Please sign in to comment.