Do not build stun_prober within Chrome on gn.
stun_prober does not compile on win.
https://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/79068/steps/compile%20%28with%20patch%29/logs/stdio
TBR=pthatcher@webrtc.org
BUG=
Review URL: https://codereview.webrtc.org/2303783002 .
Cr-Original-Commit-Position: refs/heads/master@{#14024}
Cr-Mirrored-From: https://chromium.googlesource.com/external/webrtc
Cr-Mirrored-Commit: 3f9dd7c0cc0df1d1e83642163a9eecc0c99a863a
diff --git a/p2p/BUILD.gn b/p2p/BUILD.gn
index 7866f0a..5f0f522 100644
--- a/p2p/BUILD.gn
+++ b/p2p/BUILD.gn
@@ -163,21 +163,25 @@
]
}
-executable("stun_prober") {
- sources = [
- "stunprober/main.cc",
- ]
+if (!build_with_chromium) {
+ # Doesn't build within Chrome on Win.
- configs += [ "..:common_config" ]
- if (!build_with_chromium && is_clang) {
- # 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" ]
+ executable("stun_prober") {
+ sources = [
+ "stunprober/main.cc",
+ ]
+
+ configs += [ "..:common_config" ]
+ if (!build_with_chromium && is_clang) {
+ # 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" ]
+ }
+
+ deps = [
+ ":libstunprober",
+ ":rtc_p2p",
+ "../system_wrappers:field_trial_default",
+ ]
}
-
- deps = [
- ":libstunprober",
- ":rtc_p2p",
- "../system_wrappers:field_trial_default",
- ]
}