2015-12-13 19:58:11 -08:00
|
|
|
# Copyright (c) 2015 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")
|
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
|
|
|
|
|
|
|
|
group("api") {
|
|
|
|
|
deps = [
|
|
|
|
|
":libjingle_peerconnection",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
config("libjingle_peerconnection_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_win) {
|
|
|
|
|
cflags = [ "-Wno-sign-compare" ]
|
|
|
|
|
if (!is_clang) {
|
|
|
|
|
cflags += [ "-Wno-maybe-uninitialized" ] # Only exists for GCC.
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
source_set("libjingle_peerconnection") {
|
|
|
|
|
cflags = []
|
|
|
|
|
sources = [
|
|
|
|
|
"audiotrack.cc",
|
|
|
|
|
"audiotrack.h",
|
|
|
|
|
"datachannel.cc",
|
|
|
|
|
"datachannel.h",
|
|
|
|
|
"datachannelinterface.h",
|
|
|
|
|
"dtlsidentitystore.cc",
|
|
|
|
|
"dtlsidentitystore.h",
|
|
|
|
|
"dtmfsender.cc",
|
|
|
|
|
"dtmfsender.h",
|
|
|
|
|
"dtmfsenderinterface.h",
|
|
|
|
|
"jsep.h",
|
|
|
|
|
"jsepicecandidate.cc",
|
|
|
|
|
"jsepicecandidate.h",
|
|
|
|
|
"jsepsessiondescription.cc",
|
|
|
|
|
"jsepsessiondescription.h",
|
|
|
|
|
"localaudiosource.cc",
|
|
|
|
|
"localaudiosource.h",
|
|
|
|
|
"mediaconstraintsinterface.cc",
|
|
|
|
|
"mediaconstraintsinterface.h",
|
|
|
|
|
"mediacontroller.cc",
|
|
|
|
|
"mediacontroller.h",
|
|
|
|
|
"mediastream.cc",
|
|
|
|
|
"mediastream.h",
|
|
|
|
|
"mediastreaminterface.h",
|
|
|
|
|
"mediastreamobserver.cc",
|
|
|
|
|
"mediastreamobserver.h",
|
|
|
|
|
"mediastreamprovider.h",
|
|
|
|
|
"mediastreamproxy.h",
|
|
|
|
|
"mediastreamtrack.h",
|
|
|
|
|
"mediastreamtrackproxy.h",
|
|
|
|
|
"notifier.h",
|
|
|
|
|
"peerconnection.cc",
|
|
|
|
|
"peerconnection.h",
|
|
|
|
|
"peerconnectionfactory.cc",
|
|
|
|
|
"peerconnectionfactory.h",
|
|
|
|
|
"peerconnectionfactoryproxy.h",
|
|
|
|
|
"peerconnectioninterface.h",
|
|
|
|
|
"peerconnectionproxy.h",
|
|
|
|
|
"proxy.h",
|
|
|
|
|
"remoteaudiosource.cc",
|
|
|
|
|
"remoteaudiosource.h",
|
|
|
|
|
"rtpparameters.h",
|
|
|
|
|
"rtpreceiver.cc",
|
|
|
|
|
"rtpreceiver.h",
|
|
|
|
|
"rtpreceiverinterface.h",
|
|
|
|
|
"rtpsender.cc",
|
|
|
|
|
"rtpsender.h",
|
|
|
|
|
"rtpsenderinterface.h",
|
|
|
|
|
"sctputils.cc",
|
|
|
|
|
"sctputils.h",
|
|
|
|
|
"statscollector.cc",
|
|
|
|
|
"statscollector.h",
|
|
|
|
|
"statstypes.cc",
|
|
|
|
|
"statstypes.h",
|
|
|
|
|
"streamcollection.h",
|
|
|
|
|
"videocapturertracksource.cc",
|
|
|
|
|
"videocapturertracksource.h",
|
|
|
|
|
"videosourceproxy.h",
|
|
|
|
|
"videotrack.cc",
|
|
|
|
|
"videotrack.h",
|
|
|
|
|
"videotracksource.cc",
|
|
|
|
|
"videotracksource.h",
|
|
|
|
|
"webrtcsdp.cc",
|
|
|
|
|
"webrtcsdp.h",
|
|
|
|
|
"webrtcsession.cc",
|
|
|
|
|
"webrtcsession.h",
|
|
|
|
|
"webrtcsessiondescriptionfactory.cc",
|
|
|
|
|
"webrtcsessiondescriptionfactory.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
configs += [
|
|
|
|
|
"..:common_config",
|
|
|
|
|
":libjingle_peerconnection_warnings_config",
|
|
|
|
|
]
|
|
|
|
|
public_configs = [ "..:common_inherited_config" ]
|
|
|
|
|
|
|
|
|
|
if (is_clang) {
|
|
|
|
|
# Suppress warnings from Chrome's Clang plugins.
|
|
|
|
|
# See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
|
|
|
|
|
configs -= [ "//build/config/clang:extra_warnings" ]
|
|
|
|
|
configs -= [ "//build/config/clang:find_bad_constructs" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (is_win) {
|
|
|
|
|
cflags += [ "/wd4389" ] # signed/unsigned mismatch.
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
"../media",
|
|
|
|
|
"../pc",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
if (rtc_use_quic) {
|
|
|
|
|
sources += [
|
|
|
|
|
"quicdatachannel.cc",
|
|
|
|
|
"quicdatachannel.h",
|
|
|
|
|
"quicdatatransport.cc",
|
|
|
|
|
"quicdatatransport.h",
|
|
|
|
|
]
|
|
|
|
|
deps += [ "//third_party/libquic" ]
|
|
|
|
|
public_deps = [
|
|
|
|
|
"//third_party/libquic",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|