Index: webrtc/BUILD.gn |
diff --git a/webrtc/BUILD.gn b/webrtc/BUILD.gn |
index be0e88e442a6ac0d24575a07900574ad31a31793..8ea4a77a7335d0551fc111cfd7c0c824302fd2da 100644 |
--- a/webrtc/BUILD.gn |
+++ b/webrtc/BUILD.gn |
@@ -240,47 +240,49 @@ config("common_objc") { |
precompiled_source = "sdk/objc/WebRTC-Prefix.pch" |
} |
-source_set("webrtc") { |
- sources = [ |
- "call.h", |
- "config.h", |
- "transport.h", |
- ] |
- |
- defines = [] |
- configs += [ ":common_config" ] |
- public_configs = [ ":common_inherited_config" ] |
+if (!is_ios || !build_with_chromium) { |
+ source_set("webrtc") { |
+ sources = [ |
+ "call.h", |
+ "config.h", |
+ "transport.h", |
+ ] |
- deps = [ |
- ":webrtc_common", |
- "audio", |
- "base:rtc_base", |
- "call", |
- "common_audio", |
- "common_video", |
- "modules", |
- "system_wrappers", |
- "tools", |
- "video", |
- "voice_engine", |
- ] |
+ defines = [] |
+ configs += [ ":common_config" ] |
+ public_configs = [ ":common_inherited_config" ] |
- if (build_with_chromium) { |
- deps += [ "modules/video_capture" ] |
- } else { |
- # TODO(kjellander): Enable for Chromium as well when bugs.webrtc.org/4256 is |
- # fixed. Right now it's not possible due to circular dependencies. |
- deps += [ |
- "api", |
- "media", |
- "p2p", |
- "pc", |
+ deps = [ |
+ ":webrtc_common", |
+ "audio", |
+ "base:rtc_base", |
+ "call", |
+ "common_audio", |
+ "common_video", |
+ "modules", |
+ "system_wrappers", |
+ "tools", |
+ "video", |
+ "voice_engine", |
] |
- } |
- if (rtc_enable_protobuf) { |
- defines += [ "ENABLE_RTC_EVENT_LOG" ] |
- deps += [ ":rtc_event_log_proto" ] |
+ if (build_with_chromium) { |
+ deps += [ "modules/video_capture" ] |
+ } else { |
+ # TODO(kjellander): Enable for Chromium as well when bugs.webrtc.org/4256 |
+ # is fixed. Right now it's not possible due to circular dependencies. |
+ deps += [ |
+ "api", |
+ "media", |
+ "p2p", |
+ "pc", |
+ ] |
+ } |
+ |
+ if (rtc_enable_protobuf) { |
+ defines += [ "ENABLE_RTC_EVENT_LOG" ] |
+ deps += [ ":rtc_event_log_proto" ] |
+ } |
} |
} |