kjellander 5023d41cb4 GN: Update xmpp and p2p to match Chromium build
Manual review shows that several more sources should be excluded for the
Chromium build. This is likely what's blocking
https://codereview.chromium.org/2022833002/

It was also discovered that the following were missing from GYP+GN:
webrtc/p2p/base/dtlstransport.h
webrtc/p2p/base/session.cc
webrtc/p2p/base/session.h

BUG=webrtc:4256
TBR=pthatcher@webrtc.org
NOTRY=True
NOPRESUBMIT=True

Review-Url: https://codereview.webrtc.org/2077883002
Cr-Commit-Position: refs/heads/master@{#13200}
2016-06-18 11:23:08 +00:00

143 lines
4.1 KiB
Python

# Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
#
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file in the root of the source
# tree. An additional intellectual property rights grant can be found
# in the file PATENTS. All contributing project authors may
# be found in the AUTHORS file in the root of the source tree.
{
'includes': [ '../../build/common.gypi', ],
'targets': [
{
'target_name': 'rtc_xmpp',
'type': 'static_library',
'dependencies': [
'<(webrtc_root)/base/base.gyp:rtc_base',
'<(webrtc_root)/libjingle/xmllite/xmllite.gyp:rtc_xmllite',
],
'defines': [
'FEATURE_ENABLE_SSL',
],
'sources': [
'asyncsocket.h',
'constants.cc',
'constants.h',
'jid.cc',
'jid.h',
'plainsaslhandler.h',
'prexmppauth.h',
'saslcookiemechanism.h',
'saslhandler.h',
'saslmechanism.cc',
'saslmechanism.h',
'saslplainmechanism.h',
'xmppclient.cc',
'xmppclient.h',
'xmppclientsettings.h',
'xmppengine.h',
'xmppengineimpl.cc',
'xmppengineimpl.h',
'xmppengineimpl_iq.cc',
'xmpplogintask.cc',
'xmpplogintask.h',
'xmppstanzaparser.cc',
'xmppstanzaparser.h',
'xmpptask.cc',
'xmpptask.h',
],
'direct_dependent_settings': {
'defines': [
'FEATURE_ENABLE_SSL',
'FEATURE_ENABLE_VOICEMAIL',
],
},
'conditions': [
['build_expat==1', {
'dependencies': [
'<(DEPTH)/third_party/expat/expat.gyp:expat',
],
'export_dependent_settings': [
'<(DEPTH)/third_party/expat/expat.gyp:expat',
],
}],
['build_with_chromium==0', {
'defines': [
'FEATURE_ENABLE_VOICEMAIL',
'FEATURE_ENABLE_PSTN',
],
'sources': [
'chatroommodule.h',
'chatroommoduleimpl.cc',
'discoitemsquerytask.cc',
'discoitemsquerytask.h',
'hangoutpubsubclient.cc',
'hangoutpubsubclient.h',
'iqtask.cc',
'iqtask.h',
'module.h',
'moduleimpl.cc',
'moduleimpl.h',
'mucroomconfigtask.cc',
'mucroomconfigtask.h',
'mucroomdiscoverytask.cc',
'mucroomdiscoverytask.h',
'mucroomlookuptask.cc',
'mucroomlookuptask.h',
'mucroomuniquehangoutidtask.cc',
'mucroomuniquehangoutidtask.h',
'pingtask.cc',
'pingtask.h',
'presenceouttask.cc',
'presenceouttask.h',
'presencereceivetask.cc',
'presencereceivetask.h',
'presencestatus.cc',
'presencestatus.h',
'pubsub_task.cc',
'pubsub_task.h',
'pubsubclient.cc',
'pubsubclient.h',
'pubsubstateclient.cc',
'pubsubstateclient.h',
'pubsubtasks.cc',
'pubsubtasks.h',
'receivetask.cc',
'receivetask.h',
'rostermodule.h',
'rostermoduleimpl.cc',
'rostermoduleimpl.h',
'xmppauth.cc',
'xmppauth.h',
'xmpppump.cc',
'xmpppump.h',
'xmppsocket.cc',
'xmppsocket.h',
'xmppthread.cc',
'xmppthread.h',
]
}],
['os_posix==1', {
'configurations': {
'Debug_Base': {
'defines': [
# Chromium's build/common.gypi defines this for all posix
# _except_ for ios & mac. We want it there as well, e.g.
# because ASSERT and friends trigger off of it.
'_DEBUG',
],
},
}
}],
['OS=="android"', {
'cflags!': [
'-Wextra',
'-Wall',
],
}],
],
},
], # targets
}