Exclude libjingle_peerconnection_{jni,so} targets from Chromium builds.
In GN, the libjingle_peerconnection_jni target becomes a part of 'all' implicitly, which surfaced the incompability between it and the Chromium logging implementation. In the GYP build, the target is not present due to api.gyp not being depended upon yet. BUG=webrtc:4256 TBR=perkj@webrtc.org NOTRY=True Review-Url: https://codereview.webrtc.org/2082573004 Cr-Commit-Position: refs/heads/master@{#13231}
This commit is contained in:
parent
2e82f3821f
commit
69b34625c1
@ -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
|
||||
|
||||
@ -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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user