Reland of GN: Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc}
The only thing that differs from the previous attempt in
https://codereview.webrtc.org/1979933002/ is that none of
the new targets are not hooked up to the webrtc target in
webrtc/BUILD.gn, which should make it not break the
chromium.webrtc.fyi bots.
Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc} in
preparation for removing src/third_party/libjingle in Chromium.
Changes between previous attempt and the one before that
(https://codereview.webrtc.org/1973313002) are:
* Added libstunprober target
* Adjusted warnings for Chromium's clang plugins
* webrtc/pc/externalhmac.{h,cc} added for Chromium builds.
BUG=webrtc:4256
NOTRY=True
NOPRESUBMIT=True
TBR=perkj@webrtc.org, tommi@webrtc.org
Review-Url: https://codereview.webrtc.org/2037983002
Cr-Commit-Position: refs/heads/master@{#13030}
2016-06-03 03:09:32 -07:00
|
|
|
# Copyright (c) 2016 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.
|
|
|
|
|
|
|
|
|
|
import("../../build/webrtc.gni")
|
|
|
|
|
|
|
|
|
|
group("xmpp") {
|
2016-09-15 00:53:26 -07:00
|
|
|
public_deps = [
|
Reland of GN: Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc}
The only thing that differs from the previous attempt in
https://codereview.webrtc.org/1979933002/ is that none of
the new targets are not hooked up to the webrtc target in
webrtc/BUILD.gn, which should make it not break the
chromium.webrtc.fyi bots.
Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc} in
preparation for removing src/third_party/libjingle in Chromium.
Changes between previous attempt and the one before that
(https://codereview.webrtc.org/1973313002) are:
* Added libstunprober target
* Adjusted warnings for Chromium's clang plugins
* webrtc/pc/externalhmac.{h,cc} added for Chromium builds.
BUG=webrtc:4256
NOTRY=True
NOPRESUBMIT=True
TBR=perkj@webrtc.org, tommi@webrtc.org
Review-Url: https://codereview.webrtc.org/2037983002
Cr-Commit-Position: refs/heads/master@{#13030}
2016-06-03 03:09:32 -07:00
|
|
|
":rtc_xmpp",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
config("xmpp_warnings_config") {
|
|
|
|
|
# GN orders flags on a target before flags from configs. The default config
|
|
|
|
|
# adds these flags so to cancel them out they need to come from a config and
|
|
|
|
|
# cannot be on the target directly.
|
|
|
|
|
if (is_android) {
|
|
|
|
|
cflags = [ "-Wno-error" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
config("xmpp_inherited_config") {
|
|
|
|
|
defines = [
|
|
|
|
|
"FEATURE_ENABLE_SSL",
|
|
|
|
|
"FEATURE_ENABLE_VOICEMAIL",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-23 00:38:52 -07:00
|
|
|
rtc_static_library("rtc_xmpp") {
|
Reland of GN: Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc}
The only thing that differs from the previous attempt in
https://codereview.webrtc.org/1979933002/ is that none of
the new targets are not hooked up to the webrtc target in
webrtc/BUILD.gn, which should make it not break the
chromium.webrtc.fyi bots.
Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc} in
preparation for removing src/third_party/libjingle in Chromium.
Changes between previous attempt and the one before that
(https://codereview.webrtc.org/1973313002) are:
* Added libstunprober target
* Adjusted warnings for Chromium's clang plugins
* webrtc/pc/externalhmac.{h,cc} added for Chromium builds.
BUG=webrtc:4256
NOTRY=True
NOPRESUBMIT=True
TBR=perkj@webrtc.org, tommi@webrtc.org
Review-Url: https://codereview.webrtc.org/2037983002
Cr-Commit-Position: refs/heads/master@{#13030}
2016-06-03 03:09:32 -07:00
|
|
|
cflags = []
|
|
|
|
|
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",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
defines = [ "FEATURE_ENABLE_SSL" ]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
"../../base:rtc_base",
|
|
|
|
|
"../xmllite",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
if (rtc_build_expat) {
|
|
|
|
|
deps += [ "//third_party/expat" ]
|
|
|
|
|
public_deps = [
|
|
|
|
|
"//third_party/expat",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-05 01:35:44 -07:00
|
|
|
configs += [ ":xmpp_warnings_config" ]
|
Reland of GN: Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc}
The only thing that differs from the previous attempt in
https://codereview.webrtc.org/1979933002/ is that none of
the new targets are not hooked up to the webrtc target in
webrtc/BUILD.gn, which should make it not break the
chromium.webrtc.fyi bots.
Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc} in
preparation for removing src/third_party/libjingle in Chromium.
Changes between previous attempt and the one before that
(https://codereview.webrtc.org/1973313002) are:
* Added libstunprober target
* Adjusted warnings for Chromium's clang plugins
* webrtc/pc/externalhmac.{h,cc} added for Chromium builds.
BUG=webrtc:4256
NOTRY=True
NOPRESUBMIT=True
TBR=perkj@webrtc.org, tommi@webrtc.org
Review-Url: https://codereview.webrtc.org/2037983002
Cr-Commit-Position: refs/heads/master@{#13030}
2016-06-03 03:09:32 -07:00
|
|
|
|
2016-09-05 06:10:18 -07:00
|
|
|
public_configs = [ ":xmpp_inherited_config" ]
|
Reland of GN: Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc}
The only thing that differs from the previous attempt in
https://codereview.webrtc.org/1979933002/ is that none of
the new targets are not hooked up to the webrtc target in
webrtc/BUILD.gn, which should make it not break the
chromium.webrtc.fyi bots.
Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc} in
preparation for removing src/third_party/libjingle in Chromium.
Changes between previous attempt and the one before that
(https://codereview.webrtc.org/1973313002) are:
* Added libstunprober target
* Adjusted warnings for Chromium's clang plugins
* webrtc/pc/externalhmac.{h,cc} added for Chromium builds.
BUG=webrtc:4256
NOTRY=True
NOPRESUBMIT=True
TBR=perkj@webrtc.org, tommi@webrtc.org
Review-Url: https://codereview.webrtc.org/2037983002
Cr-Commit-Position: refs/heads/master@{#13030}
2016-06-03 03:09:32 -07:00
|
|
|
|
2016-06-18 04:23:01 -07:00
|
|
|
if (build_with_chromium) {
|
|
|
|
|
if (is_nacl) {
|
|
|
|
|
deps += [ "//native_client_sdk/src/libraries/nacl_io" ]
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
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",
|
|
|
|
|
]
|
|
|
|
|
|
Reland of GN: Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc}
The only thing that differs from the previous attempt in
https://codereview.webrtc.org/1979933002/ is that none of
the new targets are not hooked up to the webrtc target in
webrtc/BUILD.gn, which should make it not break the
chromium.webrtc.fyi bots.
Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc} in
preparation for removing src/third_party/libjingle in Chromium.
Changes between previous attempt and the one before that
(https://codereview.webrtc.org/1973313002) are:
* Added libstunprober target
* Adjusted warnings for Chromium's clang plugins
* webrtc/pc/externalhmac.{h,cc} added for Chromium builds.
BUG=webrtc:4256
NOTRY=True
NOPRESUBMIT=True
TBR=perkj@webrtc.org, tommi@webrtc.org
Review-Url: https://codereview.webrtc.org/2037983002
Cr-Commit-Position: refs/heads/master@{#13030}
2016-06-03 03:09:32 -07:00
|
|
|
defines += [
|
|
|
|
|
"FEATURE_ENABLE_VOICEMAIL",
|
|
|
|
|
"FEATURE_ENABLE_PSTN",
|
|
|
|
|
]
|
|
|
|
|
|
2016-10-16 23:56:12 -07:00
|
|
|
if (!build_with_chromium && is_clang) {
|
|
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
2016-09-02 04:10:34 -07:00
|
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
Reland of GN: Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc}
The only thing that differs from the previous attempt in
https://codereview.webrtc.org/1979933002/ is that none of
the new targets are not hooked up to the webrtc target in
webrtc/BUILD.gn, which should make it not break the
chromium.webrtc.fyi bots.
Add BUILD.gn files for webrtc/{api,media,libjingle,p2p,pc} in
preparation for removing src/third_party/libjingle in Chromium.
Changes between previous attempt and the one before that
(https://codereview.webrtc.org/1973313002) are:
* Added libstunprober target
* Adjusted warnings for Chromium's clang plugins
* webrtc/pc/externalhmac.{h,cc} added for Chromium builds.
BUG=webrtc:4256
NOTRY=True
NOPRESUBMIT=True
TBR=perkj@webrtc.org, tommi@webrtc.org
Review-Url: https://codereview.webrtc.org/2037983002
Cr-Commit-Position: refs/heads/master@{#13030}
2016-06-03 03:09:32 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_posix && is_debug) {
|
|
|
|
|
# The Chromium 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.
|
|
|
|
|
defines += [ "_DEBUG" ]
|
|
|
|
|
}
|
|
|
|
|
}
|