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")
|
2016-06-29 14:55:00 +02:00
|
|
|
if (is_android) {
|
|
|
|
|
import("//build/config/android/config.gni")
|
|
|
|
|
import("//build/config/android/rules.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") {
|
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
|
|
|
":libjingle_peerconnection",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-02 04:10:34 -07:00
|
|
|
rtc_source_set("call_api") {
|
2016-08-31 07:33:05 -07:00
|
|
|
sources = [
|
|
|
|
|
"call/audio_receive_stream.h",
|
|
|
|
|
"call/audio_send_stream.h",
|
|
|
|
|
"call/audio_sink.h",
|
|
|
|
|
"call/audio_state.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
# TODO(kjellander): Add remaining dependencies when webrtc:4243 is done.
|
|
|
|
|
"..:webrtc_common",
|
|
|
|
|
"../base:rtc_base_approved",
|
|
|
|
|
"../modules/audio_coding:audio_encoder_interface",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
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
|
|
|
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.
|
2016-06-20 07:04:09 -07:00
|
|
|
if (!is_win && !is_clang) {
|
|
|
|
|
cflags = [ "-Wno-maybe-uninitialized" ] # Only exists for GCC.
|
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-23 00:38:52 -07:00
|
|
|
rtc_static_library("libjingle_peerconnection") {
|
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 = [
|
|
|
|
|
"audiotrack.cc",
|
|
|
|
|
"audiotrack.h",
|
|
|
|
|
"datachannel.cc",
|
|
|
|
|
"datachannel.h",
|
|
|
|
|
"datachannelinterface.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",
|
|
|
|
|
"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",
|
2016-09-15 23:33:01 -07:00
|
|
|
"rtcstatscollector.cc",
|
|
|
|
|
"rtcstatscollector.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
|
|
|
"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",
|
|
|
|
|
]
|
|
|
|
|
|
2016-09-05 01:35:44 -07:00
|
|
|
configs += [ ":libjingle_peerconnection_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-10-16 23:56:12 -07:00
|
|
|
if (!build_with_chromium && is_clang) {
|
2016-06-13 12:08:33 -07:00
|
|
|
# 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
|
|
|
}
|
|
|
|
|
|
|
|
|
|
deps = [
|
2016-08-31 07:33:05 -07:00
|
|
|
":call_api",
|
2016-09-15 23:33:01 -07:00
|
|
|
":rtc_stats_api",
|
2016-06-03 13:14:28 -07:00
|
|
|
"../call",
|
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
|
|
|
"../media",
|
|
|
|
|
"../pc",
|
2016-09-15 23:33:01 -07:00
|
|
|
"../stats",
|
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 (rtc_use_quic) {
|
|
|
|
|
sources += [
|
|
|
|
|
"quicdatachannel.cc",
|
|
|
|
|
"quicdatachannel.h",
|
|
|
|
|
"quicdatatransport.cc",
|
|
|
|
|
"quicdatatransport.h",
|
|
|
|
|
]
|
|
|
|
|
deps += [ "//third_party/libquic" ]
|
|
|
|
|
public_deps = [
|
|
|
|
|
"//third_party/libquic",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-06-13 12:08:33 -07:00
|
|
|
|
2016-06-21 01:05:16 -07:00
|
|
|
# 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) {
|
2016-06-13 12:08:33 -07:00
|
|
|
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
|
|
|
|
|
# warnings is by having them in a separate config, loaded from the target.
|
|
|
|
|
if (!is_win) {
|
|
|
|
|
cflags = [
|
|
|
|
|
"-Wno-sign-compare",
|
|
|
|
|
"-Wno-unused-variable",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-23 00:38:52 -07:00
|
|
|
rtc_static_library("libjingle_peerconnection_jni") {
|
2016-06-13 12:08:33 -07:00
|
|
|
sources = [
|
2016-07-01 05:10:51 -07:00
|
|
|
"android/jni/androidmediacodeccommon.h",
|
|
|
|
|
"android/jni/androidmediadecoder_jni.cc",
|
|
|
|
|
"android/jni/androidmediadecoder_jni.h",
|
|
|
|
|
"android/jni/androidmediaencoder_jni.cc",
|
|
|
|
|
"android/jni/androidmediaencoder_jni.h",
|
|
|
|
|
"android/jni/androidmetrics_jni.cc",
|
|
|
|
|
"android/jni/androidnetworkmonitor_jni.cc",
|
|
|
|
|
"android/jni/androidnetworkmonitor_jni.h",
|
2016-07-20 16:13:08 +02:00
|
|
|
"android/jni/androidvideotracksource_jni.cc",
|
2016-07-01 05:10:51 -07:00
|
|
|
"android/jni/classreferenceholder.cc",
|
|
|
|
|
"android/jni/classreferenceholder.h",
|
|
|
|
|
"android/jni/jni_helpers.cc",
|
|
|
|
|
"android/jni/jni_helpers.h",
|
|
|
|
|
"android/jni/native_handle_impl.cc",
|
|
|
|
|
"android/jni/native_handle_impl.h",
|
|
|
|
|
"android/jni/peerconnection_jni.cc",
|
|
|
|
|
"android/jni/surfacetexturehelper_jni.cc",
|
|
|
|
|
"android/jni/surfacetexturehelper_jni.h",
|
2016-07-20 16:13:08 +02:00
|
|
|
"androidvideotracksource.cc",
|
|
|
|
|
"androidvideotracksource.h",
|
2016-06-13 12:08:33 -07:00
|
|
|
]
|
|
|
|
|
|
2016-09-05 01:35:44 -07:00
|
|
|
configs += [ ":libjingle_peerconnection_jni_warnings_config" ]
|
2016-06-13 12:08:33 -07:00
|
|
|
|
2016-10-16 23:56:12 -07:00
|
|
|
if (!build_with_chromium && is_clang) {
|
2016-06-13 12:08:33 -07:00
|
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
2016-09-02 04:10:34 -07:00
|
|
|
suppressed_configs += [
|
2016-06-13 12:08:33 -07:00
|
|
|
"//build/config/clang:extra_warnings",
|
|
|
|
|
"//build/config/clang:find_bad_constructs",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# TODO(jschuh): Bug 1348: fix this warning.
|
|
|
|
|
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
|
|
|
|
|
|
|
|
|
|
if (is_win) {
|
|
|
|
|
cflags += [
|
|
|
|
|
"/wd4245", # conversion from "int" to "size_t", signed/unsigned mismatch.
|
|
|
|
|
"/wd4389", # signed/unsigned mismatch.
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
":libjingle_peerconnection",
|
2016-08-22 00:26:01 -07:00
|
|
|
"../system_wrappers:field_trial_default",
|
2016-06-13 12:08:33 -07:00
|
|
|
"../system_wrappers:metrics_default",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
if (rtc_build_libyuv) {
|
|
|
|
|
deps += [ "$rtc_libyuv_dir" ]
|
|
|
|
|
public_deps = [
|
|
|
|
|
"$rtc_libyuv_dir",
|
|
|
|
|
]
|
|
|
|
|
} else {
|
|
|
|
|
# Need to add a directory normally exported by libyuv.
|
2016-09-28 00:47:51 -07:00
|
|
|
include_dirs = [ "$rtc_libyuv_dir/include" ]
|
2016-06-13 12:08:33 -07:00
|
|
|
}
|
|
|
|
|
}
|
2016-06-29 14:55:00 +02:00
|
|
|
|
2016-09-08 04:26:37 -07:00
|
|
|
rtc_shared_library("libjingle_peerconnection_so") {
|
2016-06-29 14:55:00 +02:00
|
|
|
sources = [
|
2016-07-01 05:10:51 -07:00
|
|
|
"android/jni/jni_onload.cc",
|
2016-06-29 14:55:00 +02:00
|
|
|
]
|
|
|
|
|
|
2016-09-08 04:26:37 -07:00
|
|
|
suppressed_configs += [ "//build/config/android:hide_native_jni_exports" ]
|
2016-06-29 14:55:00 +02:00
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
":libjingle_peerconnection",
|
|
|
|
|
":libjingle_peerconnection_jni",
|
|
|
|
|
]
|
2016-08-24 00:48:21 -07:00
|
|
|
output_extension = "so"
|
2016-06-29 14:55:00 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
android_library("libjingle_peerconnection_java") {
|
|
|
|
|
java_files = [
|
|
|
|
|
"../modules/audio_device/android/java/src/org/webrtc/voiceengine/BuildInfo.java",
|
|
|
|
|
"../modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioEffects.java",
|
|
|
|
|
"../modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioManager.java",
|
|
|
|
|
"../modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioRecord.java",
|
|
|
|
|
"../modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioTrack.java",
|
|
|
|
|
"../modules/audio_device/android/java/src/org/webrtc/voiceengine/WebRtcAudioUtils.java",
|
2016-07-01 05:10:51 -07:00
|
|
|
"android/java/src/org/webrtc/AudioSource.java",
|
|
|
|
|
"android/java/src/org/webrtc/AudioTrack.java",
|
|
|
|
|
"android/java/src/org/webrtc/CallSessionFileRotatingLogSink.java",
|
2016-09-21 01:34:56 -07:00
|
|
|
"android/java/src/org/webrtc/Camera1Capturer.java",
|
2016-07-01 05:10:51 -07:00
|
|
|
"android/java/src/org/webrtc/Camera1Enumerator.java",
|
2016-09-21 01:34:56 -07:00
|
|
|
"android/java/src/org/webrtc/Camera1Session.java",
|
2016-07-01 05:10:51 -07:00
|
|
|
"android/java/src/org/webrtc/Camera2Capturer.java",
|
|
|
|
|
"android/java/src/org/webrtc/Camera2Enumerator.java",
|
2016-08-11 01:00:37 -07:00
|
|
|
"android/java/src/org/webrtc/Camera2Session.java",
|
|
|
|
|
"android/java/src/org/webrtc/CameraCapturer.java",
|
2016-07-01 05:10:51 -07:00
|
|
|
"android/java/src/org/webrtc/CameraEnumerationAndroid.java",
|
|
|
|
|
"android/java/src/org/webrtc/CameraEnumerator.java",
|
2016-08-11 01:00:37 -07:00
|
|
|
"android/java/src/org/webrtc/CameraSession.java",
|
2016-07-01 05:10:51 -07:00
|
|
|
"android/java/src/org/webrtc/CameraVideoCapturer.java",
|
|
|
|
|
"android/java/src/org/webrtc/DataChannel.java",
|
|
|
|
|
"android/java/src/org/webrtc/EglBase.java",
|
|
|
|
|
"android/java/src/org/webrtc/EglBase10.java",
|
|
|
|
|
"android/java/src/org/webrtc/EglBase14.java",
|
2016-10-07 05:32:35 -07:00
|
|
|
"android/java/src/org/webrtc/EglRenderer.java",
|
2016-10-18 08:47:51 -07:00
|
|
|
"android/java/src/org/webrtc/FileVideoCapturer.java",
|
2016-07-01 05:10:51 -07:00
|
|
|
"android/java/src/org/webrtc/GlRectDrawer.java",
|
|
|
|
|
"android/java/src/org/webrtc/GlShader.java",
|
|
|
|
|
"android/java/src/org/webrtc/GlTextureFrameBuffer.java",
|
|
|
|
|
"android/java/src/org/webrtc/GlUtil.java",
|
|
|
|
|
"android/java/src/org/webrtc/IceCandidate.java",
|
|
|
|
|
"android/java/src/org/webrtc/MediaCodecVideoDecoder.java",
|
|
|
|
|
"android/java/src/org/webrtc/MediaCodecVideoEncoder.java",
|
|
|
|
|
"android/java/src/org/webrtc/MediaConstraints.java",
|
|
|
|
|
"android/java/src/org/webrtc/MediaSource.java",
|
|
|
|
|
"android/java/src/org/webrtc/MediaStream.java",
|
|
|
|
|
"android/java/src/org/webrtc/MediaStreamTrack.java",
|
|
|
|
|
"android/java/src/org/webrtc/Metrics.java",
|
|
|
|
|
"android/java/src/org/webrtc/NetworkMonitor.java",
|
|
|
|
|
"android/java/src/org/webrtc/NetworkMonitorAutoDetect.java",
|
|
|
|
|
"android/java/src/org/webrtc/PeerConnection.java",
|
|
|
|
|
"android/java/src/org/webrtc/PeerConnectionFactory.java",
|
|
|
|
|
"android/java/src/org/webrtc/RendererCommon.java",
|
|
|
|
|
"android/java/src/org/webrtc/RtpParameters.java",
|
|
|
|
|
"android/java/src/org/webrtc/RtpReceiver.java",
|
|
|
|
|
"android/java/src/org/webrtc/RtpSender.java",
|
2016-10-19 02:46:19 -07:00
|
|
|
"android/java/src/org/webrtc/ScreenCapturerAndroid.java",
|
2016-07-01 05:10:51 -07:00
|
|
|
"android/java/src/org/webrtc/SdpObserver.java",
|
|
|
|
|
"android/java/src/org/webrtc/SessionDescription.java",
|
|
|
|
|
"android/java/src/org/webrtc/StatsObserver.java",
|
|
|
|
|
"android/java/src/org/webrtc/StatsReport.java",
|
|
|
|
|
"android/java/src/org/webrtc/SurfaceTextureHelper.java",
|
|
|
|
|
"android/java/src/org/webrtc/SurfaceViewRenderer.java",
|
|
|
|
|
"android/java/src/org/webrtc/VideoCapturer.java",
|
|
|
|
|
"android/java/src/org/webrtc/VideoCapturerAndroid.java",
|
2016-10-18 08:47:51 -07:00
|
|
|
"android/java/src/org/webrtc/VideoFileRenderer.java",
|
2016-07-01 05:10:51 -07:00
|
|
|
"android/java/src/org/webrtc/VideoRenderer.java",
|
|
|
|
|
"android/java/src/org/webrtc/VideoRendererGui.java",
|
|
|
|
|
"android/java/src/org/webrtc/VideoSource.java",
|
|
|
|
|
"android/java/src/org/webrtc/VideoTrack.java",
|
2016-06-29 14:55:00 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
"//webrtc/base:base_java",
|
|
|
|
|
]
|
|
|
|
|
}
|
2016-06-13 12:08:33 -07:00
|
|
|
}
|
|
|
|
|
|
2016-09-15 23:33:01 -07:00
|
|
|
# GYP version: webrtc/api/api.gyp:rtc_stats_api
|
|
|
|
|
rtc_source_set("rtc_stats_api") {
|
|
|
|
|
cflags = []
|
|
|
|
|
sources = [
|
|
|
|
|
"stats/rtcstats.h",
|
|
|
|
|
"stats/rtcstats_objects.h",
|
|
|
|
|
"stats/rtcstatsreport.h",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
"../base:rtc_base_approved",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2016-06-13 12:08:33 -07:00
|
|
|
if (rtc_include_tests) {
|
|
|
|
|
config("peerconnection_unittests_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
|
|
|
|
|
# warnings is by having them in a separate config, loaded from the target.
|
|
|
|
|
# TODO(kjellander): Make the code compile without disabling these flags.
|
|
|
|
|
# See https://bugs.webrtc.org/3307.
|
|
|
|
|
if (is_clang && is_win) {
|
2016-08-26 13:31:24 -07:00
|
|
|
cflags = [
|
|
|
|
|
# See https://bugs.chromium.org/p/webrtc/issues/detail?id=6267
|
|
|
|
|
# for -Wno-sign-compare
|
|
|
|
|
"-Wno-sign-compare",
|
|
|
|
|
"-Wno-unused-function",
|
|
|
|
|
]
|
2016-06-13 12:08:33 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!is_win) {
|
|
|
|
|
cflags = [ "-Wno-sign-compare" ]
|
|
|
|
|
cflags_cc = [ "-Wno-overloaded-virtual" ]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2016-09-02 04:10:34 -07:00
|
|
|
rtc_test("peerconnection_unittests") {
|
2016-06-13 12:08:33 -07:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"datachannel_unittest.cc",
|
|
|
|
|
"dtmfsender_unittest.cc",
|
|
|
|
|
"fakemetricsobserver.cc",
|
|
|
|
|
"fakemetricsobserver.h",
|
|
|
|
|
"jsepsessiondescription_unittest.cc",
|
|
|
|
|
"localaudiosource_unittest.cc",
|
|
|
|
|
"mediaconstraintsinterface_unittest.cc",
|
|
|
|
|
"mediastream_unittest.cc",
|
|
|
|
|
"peerconnection_unittest.cc",
|
|
|
|
|
"peerconnectionendtoend_unittest.cc",
|
|
|
|
|
"peerconnectionfactory_unittest.cc",
|
|
|
|
|
"peerconnectioninterface_unittest.cc",
|
|
|
|
|
"proxy_unittest.cc",
|
2016-09-15 23:33:01 -07:00
|
|
|
"rtcstatscollector_unittest.cc",
|
2016-06-13 12:08:33 -07:00
|
|
|
"rtpsenderreceiver_unittest.cc",
|
|
|
|
|
"statscollector_unittest.cc",
|
|
|
|
|
"test/fakeaudiocapturemodule.cc",
|
|
|
|
|
"test/fakeaudiocapturemodule.h",
|
|
|
|
|
"test/fakeaudiocapturemodule_unittest.cc",
|
|
|
|
|
"test/fakeconstraints.h",
|
|
|
|
|
"test/fakedatachannelprovider.h",
|
|
|
|
|
"test/fakeperiodicvideocapturer.h",
|
|
|
|
|
"test/fakertccertificategenerator.h",
|
|
|
|
|
"test/fakevideotrackrenderer.h",
|
2016-08-30 14:04:35 -07:00
|
|
|
"test/mock_datachannel.h",
|
2016-08-16 01:19:43 -07:00
|
|
|
"test/mock_peerconnection.h",
|
|
|
|
|
"test/mock_webrtcsession.h",
|
2016-06-13 12:08:33 -07:00
|
|
|
"test/mockpeerconnectionobservers.h",
|
|
|
|
|
"test/peerconnectiontestwrapper.cc",
|
|
|
|
|
"test/peerconnectiontestwrapper.h",
|
|
|
|
|
"test/testsdpstrings.h",
|
|
|
|
|
"videocapturertracksource_unittest.cc",
|
|
|
|
|
"videotrack_unittest.cc",
|
|
|
|
|
"webrtcsdp_unittest.cc",
|
|
|
|
|
"webrtcsession_unittest.cc",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
defines = [ "HAVE_SCTP" ]
|
|
|
|
|
|
2016-09-05 01:35:44 -07:00
|
|
|
configs += [ ":peerconnection_unittests_config" ]
|
2016-06-13 12:08:33 -07:00
|
|
|
|
2016-10-16 23:56:12 -07:00
|
|
|
if (!build_with_chromium && is_clang) {
|
2016-06-13 12:08:33 -07:00
|
|
|
# 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" ]
|
2016-06-13 12:08:33 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# TODO(jschuh): Bug 1348: fix this warning.
|
|
|
|
|
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
|
|
|
|
|
|
|
|
|
|
if (is_win) {
|
|
|
|
|
cflags = [
|
|
|
|
|
"/wd4245", # conversion from int to size_t, signed/unsigned mismatch.
|
|
|
|
|
"/wd4389", # signed/unsigned mismatch.
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (rtc_use_quic) {
|
|
|
|
|
public_deps = [
|
|
|
|
|
"//third_party/libquic",
|
|
|
|
|
]
|
|
|
|
|
sources += [
|
|
|
|
|
"quicdatachannel_unittest.cc",
|
|
|
|
|
"quicdatatransport_unittest.cc",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
deps = []
|
|
|
|
|
if (is_android) {
|
|
|
|
|
sources += [
|
|
|
|
|
"test/androidtestinitializer.cc",
|
|
|
|
|
"test/androidtestinitializer.h",
|
|
|
|
|
]
|
|
|
|
|
deps += [
|
2016-08-23 12:55:40 -07:00
|
|
|
":libjingle_peerconnection_java",
|
2016-06-13 12:08:33 -07:00
|
|
|
":libjingle_peerconnection_jni",
|
|
|
|
|
"//testing/android/native_test:native_test_support",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
deps += [
|
|
|
|
|
":libjingle_peerconnection",
|
|
|
|
|
"..:webrtc_common",
|
|
|
|
|
"../base:rtc_base_tests_utils",
|
|
|
|
|
"../media:rtc_unittest_main",
|
|
|
|
|
"../pc:rtc_pc",
|
|
|
|
|
"../system_wrappers:metrics_default",
|
|
|
|
|
"//testing/gmock",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
if (is_android) {
|
|
|
|
|
deps += [ "//testing/android/native_test:native_test_support" ]
|
2016-08-15 02:29:11 -07:00
|
|
|
|
|
|
|
|
shard_timeout = 900
|
2016-06-13 12:08:33 -07:00
|
|
|
}
|
|
|
|
|
}
|
2016-08-10 03:10:48 -07:00
|
|
|
|
|
|
|
|
if (is_android) {
|
|
|
|
|
instrumentation_test_apk("libjingle_peerconnection_android_unittest") {
|
|
|
|
|
apk_name = "libjingle_peerconnection_android_unittest"
|
|
|
|
|
android_manifest = "androidtests/AndroidManifest.xml"
|
|
|
|
|
|
|
|
|
|
java_files = [
|
|
|
|
|
"androidtests/src/org/webrtc/Camera1CapturerUsingByteBufferTest.java",
|
|
|
|
|
"androidtests/src/org/webrtc/Camera1CapturerUsingTextureTest.java",
|
|
|
|
|
"androidtests/src/org/webrtc/Camera2CapturerTest.java",
|
|
|
|
|
"androidtests/src/org/webrtc/CameraVideoCapturerTestFixtures.java",
|
|
|
|
|
"androidtests/src/org/webrtc/GlRectDrawerTest.java",
|
|
|
|
|
"androidtests/src/org/webrtc/MediaCodecVideoEncoderTest.java",
|
|
|
|
|
"androidtests/src/org/webrtc/NetworkMonitorTest.java",
|
|
|
|
|
"androidtests/src/org/webrtc/PeerConnectionTest.java",
|
|
|
|
|
"androidtests/src/org/webrtc/RendererCommonTest.java",
|
|
|
|
|
"androidtests/src/org/webrtc/SurfaceTextureHelperTest.java",
|
|
|
|
|
"androidtests/src/org/webrtc/SurfaceViewRendererOnMeasureTest.java",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
|
":libjingle_peerconnection_android_unittest_resources",
|
|
|
|
|
":libjingle_peerconnection_java",
|
|
|
|
|
"//base:base_java",
|
|
|
|
|
"//webrtc/base:base_java",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
shared_libraries = [ ":libjingle_peerconnection_so" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
android_resources("libjingle_peerconnection_android_unittest_resources") {
|
|
|
|
|
resource_dirs = [ "androidtests/res" ]
|
|
|
|
|
custom_package = "org.webrtc"
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-06-13 12:08:33 -07:00
|
|
|
}
|