aboutsummaryrefslogtreecommitdiff
path: root/BUILD.gn
diff options
context:
space:
mode:
authorMirko Bonadei <mbonadei@webrtc.org>2020-01-21 12:10:10 +0100
committerCommit Bot <commit-bot@chromium.org>2020-01-21 12:13:11 +0000
commitccbe95fd8a9e12dc519904b9d16c41590c2a16b6 (patch)
tree8d5574e36599ae4e3ebf238dfa887af2e4ac1692 /BUILD.gn
parent0809e7ed43aa5233ca81889011ec9d08374c2dbc (diff)
downloadwebrtc-ccbe95fd8a9e12dc519904b9d16c41590c2a16b6.tar.gz
Reformat GN files.
`gn format` recently [1] 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. CL generated with: $ git ls-files | grep BUILD.gn | xargs gn format $ gn format build_overrides/build.gni $ gn format build_overrides/gtest.gni $ gn format modules/audio_coding/audio_coding.gni $ gn format webrtc.gni $ gn format .gn Plus a few manual changes to add exceptions for "public_deps" (after changing these lines the presubmit started to complain). [1] - https://gn-review.googlesource.com/c/gn/+/6860 Bug: webrtc:11302 Change-Id: Iac29d23c1618ebef925c972e2891cd9f4e8cd613 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/166882 Reviewed-by: Patrik Höglund <phoglund@webrtc.org> Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/master@{#30334}
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn30
1 files changed, 8 insertions, 22 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 4b5bba6c51..2989440a95 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -28,9 +28,7 @@ if (!build_with_chromium) {
# 'ninja default' and then 'ninja all', the second build should do no work.
group("default") {
testonly = true
- deps = [
- ":webrtc",
- ]
+ deps = [ ":webrtc" ]
if (rtc_build_examples) {
deps += [ "examples" ]
}
@@ -74,8 +72,8 @@ if (!build_with_chromium) {
if (is_android) {
deps += [
"examples:android_examples_junit_tests",
- "sdk/android:android_sdk_junit_tests",
"sdk/android:android_instrumentation_test_apk",
+ "sdk/android:android_sdk_junit_tests",
]
} else {
deps += [ "modules/video_capture:video_capture_tests" ]
@@ -486,9 +484,7 @@ if (!build_with_chromium) {
rtc_executable("webrtc_lib_link_test") {
testonly = true
- sources = [
- "webrtc_lib_link_test.cc",
- ]
+ sources = [ "webrtc_lib_link_test.cc" ]
deps = [
# NOTE: Don't add deps here. If this test fails to link, it means you
# need to add stuff to the webrtc static lib target above.
@@ -504,9 +500,7 @@ rtc_source_set("webrtc_common") {
# TODO(bugs.webrtc.org/9808): Move to private visibility as soon as that
# client code gets updated.
visibility = [ "*" ]
- sources = [
- "common_types.h",
- ]
+ sources = [ "common_types.h" ]
}
if (use_libfuzzer || use_afl) {
@@ -514,9 +508,7 @@ if (use_libfuzzer || use_afl) {
# webrtc/test/fuzzers/.
group("webrtc_fuzzers_dummy") {
testonly = true
- deps = [
- "test/fuzzers:webrtc_fuzzer_main",
- ]
+ deps = [ "test/fuzzers:webrtc_fuzzer_main" ]
}
}
@@ -595,9 +587,7 @@ if (rtc_include_tests) {
bundle_data("video_engine_tests_bundle_data") {
testonly = true
sources = video_engine_tests_resources
- outputs = [
- "{{bundle_resources_dir}}/{{source_file_part}}",
- ]
+ outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
}
}
@@ -643,9 +633,7 @@ if (rtc_include_tests) {
bundle_data("webrtc_perf_tests_bundle_data") {
testonly = true
sources = webrtc_perf_tests_resources
- outputs = [
- "{{bundle_resources_dir}}/{{source_file_part}}",
- ]
+ outputs = [ "{{bundle_resources_dir}}/{{source_file_part}}" ]
}
}
@@ -674,9 +662,7 @@ if (rtc_include_tests) {
rtc_test("webrtc_nonparallel_tests") {
testonly = true
- deps = [
- "rtc_base:rtc_base_nonparallel_tests",
- ]
+ deps = [ "rtc_base:rtc_base_nonparallel_tests" ]
if (is_android) {
deps += [ "//testing/android/native_test:native_test_support" ]
shard_timeout = 900