Move peerconnectionwrapper.(h|cc) into separate build target
Bug: webrtc:10138
Change-Id: I32f8b9721c37075e355b90c3794a4bef6bd46761
Reviewed-on: https://webrtc-review.googlesource.com/c/114548
Reviewed-by: Oleh Prypin <oprypin@webrtc.org>
Commit-Queue: Artem Titov <titovartem@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#26027}
diff --git a/pc/BUILD.gn b/pc/BUILD.gn
index 89c4df8..0fb619c 100644
--- a/pc/BUILD.gn
+++ b/pc/BUILD.gn
@@ -316,11 +316,10 @@
testonly = true
sources = [
"peerconnection_rampup_tests.cc",
- "peerconnectionwrapper.cc",
- "peerconnectionwrapper.h",
]
deps = [
":pc_test_utils",
+ ":peerconnection_wrapper",
"../api:audio_options_api",
"../api:create_peerconnection_factory",
"../api:libjingle_peerconnection_api",
@@ -341,7 +340,6 @@
"../rtc_base:checks",
"../rtc_base:gunit_helpers",
"../rtc_base:rtc_base",
- "../rtc_base:rtc_base_approved",
"../rtc_base:rtc_base_tests_utils",
"../system_wrappers:system_wrappers",
"../test:perf_test",
@@ -355,6 +353,28 @@
}
}
+ rtc_source_set("peerconnection_wrapper") {
+ testonly = true
+ sources = [
+ "peerconnectionwrapper.cc",
+ "peerconnectionwrapper.h",
+ ]
+ deps = [
+ ":pc_test_utils",
+ "../api:libjingle_peerconnection_api",
+ "../api:rtc_stats_api",
+ "../pc:peerconnection",
+ "../rtc_base:checks",
+ "../rtc_base:gunit_helpers",
+ "../rtc_base:rtc_base_approved",
+ "../test:test_support",
+ ]
+ 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" ]
+ }
+ }
+
rtc_source_set("pc_test_utils") {
testonly = true
sources = [