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

Unified Diff: webrtc/BUILD.gn

Issue 2205533003: gn: Do not include "webrtc" in Chromium/iOS builds. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 5 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 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" ]
+ }
}
}
« 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