Index: webrtc/examples/BUILD.gn |
diff --git a/webrtc/examples/BUILD.gn b/webrtc/examples/BUILD.gn |
index 10deaf27c42294e40868a989c5af43bd0638c5c7..3cf34a88382c791be775749d828c14a3bb10e517 100644 |
--- a/webrtc/examples/BUILD.gn |
+++ b/webrtc/examples/BUILD.gn |
@@ -615,6 +615,42 @@ if (is_linux || is_win) { |
} |
} |
+if (is_win) { |
+ rtc_shared_library("webrtc_unity_plugin") { |
+ testonly = true |
+ sources = [ |
+ "unityplugin/simple_peer_connection.cc", |
+ "unityplugin/simple_peer_connection.h", |
+ "unityplugin/unity_plugin_apis.cc", |
+ "unityplugin/unity_plugin_apis.h", |
+ ] |
+ if (!build_with_chromium && is_clang) { |
+ # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
+ suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
+ } |
+ cflags = [ "/wd4245" ] |
+ configs += [ |
+ "//build/config/win:windowed", |
+ ":peerconnection_client_warnings_config", |
+ ] |
+ deps = [ |
+ "//webrtc/api:libjingle_peerconnection_test_api", |
+ "//webrtc/api:video_frame_api", |
+ "//webrtc/base:rtc_base", |
+ "//webrtc/base:rtc_base_approved", |
+ "//webrtc/media:rtc_media", |
+ "//webrtc/media:rtc_media_base", |
+ "//webrtc/modules/video_capture:video_capture_module", |
+ "//webrtc/pc:libjingle_peerconnection", |
+ "//webrtc/system_wrappers:field_trial_default", |
+ "//webrtc/system_wrappers:metrics_default", |
+ ] |
+ if (rtc_build_json) { |
+ deps += [ "//third_party/jsoncpp" ] |
+ } |
+ } |
+} |
+ |
if (!build_with_chromium) { |
# Doesn't build within Chrome on Win. |
rtc_executable("stun_prober") { |