Index: webrtc/BUILD.gn |
diff --git a/webrtc/BUILD.gn b/webrtc/BUILD.gn |
index 94ce0120b61e73b84d076c385625bc51fcc17862..04502616d60d033b5cfae9efa59b95b99b8ca6f1 100644 |
--- a/webrtc/BUILD.gn |
+++ b/webrtc/BUILD.gn |
@@ -296,6 +296,39 @@ if (!build_with_chromium) { |
} |
} |
+if (!build_with_chromium) { |
+ executable("video_loopback") { |
kjellander_webrtc
2016/08/10 14:46:50
Put this new target inside the existing if (!build
stefan-webrtc
2016/08/11 10:38:35
Done.
|
+ testonly = true |
+ sources = [ |
+ "test/mac/run_test.mm", |
+ "test/run_test.cc", |
+ "test/run_test.h", |
+ "video/video_loopback.cc", |
+ ] |
+ |
+ if (is_mac) { |
+ sources -= [ "test/run_test.cc" ] |
kjellander_webrtc
2016/08/10 14:46:49
GN disencourages use of negative source entries. C
stefan-webrtc
2016/08/11 10:38:35
Done.
|
+ } |
+ deps = [ |
+ ":video_quality_test", |
+ ":webrtc", |
kjellander_webrtc
2016/08/10 14:46:50
Is there a way to not depend on the monolith targe
stefan-webrtc
2016/08/11 10:38:35
Changed to call:call
|
+ "modules/video_capture:video_capture_internal_impl", |
kjellander_webrtc
2016/08/10 14:46:49
Please add the added dependencies to GYP as well t
stefan-webrtc
2016/08/11 10:38:35
Done.
|
+ "system_wrappers:metrics_default", |
+ "test:field_trial", |
+ "test:test_common", |
+ "test:test_renderer", |
+ "//testing/gmock", |
+ "//testing/gtest", |
+ "//third_party/gflags", |
+ ] |
+ if (is_clang && !is_nacl) { |
+ # Suppress warnings from Chrome's Clang plugins. |
+ # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
+ configs -= [ "//build/config/clang:find_bad_constructs" ] |
kjellander_webrtc
2016/08/10 14:46:50
Could you try fixing these warnings instead of hav
stefan-webrtc
2016/08/11 10:38:35
I prefer not to in this case since it means I'll h
kjellander_webrtc
2016/08/15 11:27:38
Fair enough.
|
+ } |
+ } |
+} |
+ |
source_set("webrtc_common") { |
sources = [ |
"audio_sink.h", |