Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(737)

Unified Diff: webrtc/BUILD.gn

Issue 2236473002: Add video_loopback to gn. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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",
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698