diff --git a/webrtc/api/BUILD.gn b/webrtc/api/BUILD.gn index 442ecbff0c..1dd79bc35c 100644 --- a/webrtc/api/BUILD.gn +++ b/webrtc/api/BUILD.gn @@ -127,7 +127,9 @@ source_set("libjingle_peerconnection") { } } -if (is_android) { +# Exclude the targets below from the Chromium build since they cannot be built +# due to incompability with Chromium's logging implementation. +if (is_android && !build_with_chromium) { config("libjingle_peerconnection_jni_warnings_config") { # The warnings below are enabled by default. Since GN orders compiler flags # for a target before flags from configs, the only way to disable such diff --git a/webrtc/api/api.gyp b/webrtc/api/api.gyp index a3113abf21..077a558691 100644 --- a/webrtc/api/api.gyp +++ b/webrtc/api/api.gyp @@ -22,7 +22,9 @@ }], ], }], - ['OS=="android"', { + # Excluded from the Chromium build since they cannot be built due to + # incompability with Chromium's logging implementation. + ['OS=="android" and build_with_chromium==0', { 'targets': [ { 'target_name': 'libjingle_peerconnection_jni',