Reason for revert:
Fails compile in Chromium for NaCl:
https://build.chromium.org/p/chromium.webrtc.fyi/builders/Win%20Builder/builds/9320/
http://build.chromium.org/p/chromium.webrtc.fyi/builders/Mac%20Builder/builds/22215
http://build.chromium.org/p/chromium.webrtc.fyi/builders/Linux%20Builder/builds/14501
Original issue's description:
> Enable GN check for webrtc/{ortc,p2p}
>
> Introduce new target //webrtc/p2p:rtc_p2p_test_utils to host
> test-related utilities.
> Previously uncovered header "base/fakecandidatepair.h" is now also in a target.
>
> BUG=webrtc:6828
>
> Review-Url: https://codereview.webrtc.org/2714263004
> Cr-Commit-Position: refs/heads/master@{#17036}
> Committed: c9515b6ce6
TBR=deadbeef@webrtc.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=webrtc:6828
Review-Url: https://codereview.webrtc.org/2735583002
Cr-Commit-Position: refs/heads/master@{#17038}
84 lines
2.3 KiB
Plaintext
84 lines
2.3 KiB
Plaintext
# Copyright (c) 2017 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("../webrtc.gni")
|
|
if (is_android) {
|
|
import("//build/config/android/config.gni")
|
|
import("//build/config/android/rules.gni")
|
|
}
|
|
|
|
rtc_static_library("ortc") {
|
|
defines = []
|
|
sources = [
|
|
"ortcfactory.cc",
|
|
"ortcfactory.h",
|
|
"ortcrtpreceiveradapter.cc",
|
|
"ortcrtpreceiveradapter.h",
|
|
"ortcrtpsenderadapter.cc",
|
|
"ortcrtpsenderadapter.h",
|
|
"rtpparametersconversion.cc",
|
|
"rtpparametersconversion.h",
|
|
"rtptransportadapter.cc",
|
|
"rtptransportadapter.h",
|
|
"rtptransportcontrolleradapter.cc",
|
|
"rtptransportcontrolleradapter.h",
|
|
]
|
|
|
|
# TODO(deadbeef): Create a separate target for the common things ORTC and
|
|
# PeerConnection code shares, so that ortc can depend on that instead of
|
|
# libjingle_peerconnection.
|
|
deps = [
|
|
"../pc:libjingle_peerconnection",
|
|
]
|
|
|
|
public_deps = [
|
|
"../api:ortc_api",
|
|
]
|
|
|
|
if (!build_with_chromium && is_clang) {
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
|
}
|
|
}
|
|
|
|
if (rtc_include_tests) {
|
|
rtc_test("ortc_unittests") {
|
|
testonly = true
|
|
|
|
sources = [
|
|
"ortcfactory_integrationtest.cc",
|
|
"ortcfactory_unittest.cc",
|
|
"ortcrtpreceiver_unittest.cc",
|
|
"ortcrtpsender_unittest.cc",
|
|
"rtpparametersconversion_unittest.cc",
|
|
"rtptransport_unittest.cc",
|
|
"rtptransportcontroller_unittest.cc",
|
|
"srtptransport_unittest.cc",
|
|
"testrtpparameters.cc",
|
|
"testrtpparameters.h",
|
|
]
|
|
|
|
deps = [
|
|
":ortc",
|
|
"../base:rtc_base_tests_utils",
|
|
"../media:rtc_unittest_main",
|
|
"../pc:pc_test_utils",
|
|
"../system_wrappers:metrics_default",
|
|
]
|
|
|
|
if (!build_with_chromium && is_clang) {
|
|
# Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
|
|
suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
|
|
}
|
|
|
|
if (is_android) {
|
|
deps += [ "//testing/android/native_test:native_test_support" ]
|
|
}
|
|
}
|
|
}
|