2017-03-18 02:29:13 -07:00
|
|
|
# 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.
|
|
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
import("../../../../webrtc.gni")
|
2017-03-18 02:29:13 -07:00
|
|
|
|
|
|
|
|
group("conversational_speech") {
|
|
|
|
|
testonly = true
|
|
|
|
|
deps = [
|
2017-03-18 03:45:31 -07:00
|
|
|
":conversational_speech_generator",
|
2017-03-18 02:29:13 -07:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
2017-03-18 03:45:31 -07:00
|
|
|
rtc_executable("conversational_speech_generator") {
|
2017-03-18 02:29:13 -07:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
2017-03-18 03:45:31 -07:00
|
|
|
"generator.cc",
|
2017-03-18 02:29:13 -07:00
|
|
|
]
|
|
|
|
|
deps = [
|
2017-03-18 03:45:31 -07:00
|
|
|
":lib",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../../../rtc_base:rtc_base_approved",
|
2018-03-15 15:05:39 +01:00
|
|
|
"../../../../test:fileutils",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../../../test:test_support",
|
Use absl::make_unique and absl::WrapUnique directly
Instead of going through our wrappers in ptr_util.h.
This CL was generated by the following script:
git grep -l ptr_util | xargs perl -pi -e 's,#include "rtc_base/ptr_util.h",#include "absl/memory/memory.h",'
git grep -l MakeUnique | xargs perl -pi -e 's,\b(rtc::)?MakeUnique\b,absl::make_unique,g'
git grep -l WrapUnique | xargs perl -pi -e 's,\b(rtc::)?WrapUnique\b,absl::WrapUnique,g'
git checkout -- rtc_base/ptr_util{.h,_unittest.cc}
git cl format
Followed by manually adding dependencies on
//third_party/abseil-cpp/absl/memory until `gn check` stopped
complaining.
Bug: webrtc:9473
Change-Id: I89ccd363f070479b8c431eb2c3d404a46eaacc1c
Reviewed-on: https://webrtc-review.googlesource.com/86600
Commit-Queue: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23850}
2018-07-05 11:40:33 +02:00
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
2017-03-18 02:29:13 -07:00
|
|
|
]
|
2017-03-23 05:17:06 -07:00
|
|
|
}
|
2017-03-18 03:45:31 -07:00
|
|
|
|
|
|
|
|
rtc_static_library("lib") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"config.cc",
|
|
|
|
|
"config.h",
|
2017-03-28 05:39:59 -07:00
|
|
|
"multiend_call.cc",
|
|
|
|
|
"multiend_call.h",
|
2017-06-15 02:24:59 -07:00
|
|
|
"simulator.cc",
|
|
|
|
|
"simulator.h",
|
2017-03-22 08:23:46 -07:00
|
|
|
"timing.cc",
|
|
|
|
|
"timing.h",
|
2017-03-28 05:39:59 -07:00
|
|
|
"wavreader_abstract_factory.h",
|
|
|
|
|
"wavreader_factory.cc",
|
|
|
|
|
"wavreader_factory.h",
|
|
|
|
|
"wavreader_interface.h",
|
2017-03-22 08:23:46 -07:00
|
|
|
]
|
|
|
|
|
deps = [
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../../..:webrtc_common",
|
2017-09-04 05:43:17 -07:00
|
|
|
"../../../../api:array_view",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../../../common_audio",
|
2017-12-13 16:05:42 +01:00
|
|
|
"../../../../rtc_base:checks",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../../../rtc_base:rtc_base_approved",
|
Use absl::make_unique and absl::WrapUnique directly
Instead of going through our wrappers in ptr_util.h.
This CL was generated by the following script:
git grep -l ptr_util | xargs perl -pi -e 's,#include "rtc_base/ptr_util.h",#include "absl/memory/memory.h",'
git grep -l MakeUnique | xargs perl -pi -e 's,\b(rtc::)?MakeUnique\b,absl::make_unique,g'
git grep -l WrapUnique | xargs perl -pi -e 's,\b(rtc::)?WrapUnique\b,absl::WrapUnique,g'
git checkout -- rtc_base/ptr_util{.h,_unittest.cc}
git cl format
Followed by manually adding dependencies on
//third_party/abseil-cpp/absl/memory until `gn check` stopped
complaining.
Bug: webrtc:9473
Change-Id: I89ccd363f070479b8c431eb2c3d404a46eaacc1c
Reviewed-on: https://webrtc-review.googlesource.com/86600
Commit-Queue: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23850}
2018-07-05 11:40:33 +02:00
|
|
|
"//third_party/abseil-cpp/absl/memory",
|
2017-03-18 03:45:31 -07:00
|
|
|
]
|
|
|
|
|
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
2017-03-23 05:17:06 -07:00
|
|
|
}
|
2017-03-18 03:45:31 -07:00
|
|
|
|
2017-03-23 05:17:06 -07:00
|
|
|
rtc_source_set("unittest") {
|
2017-03-18 03:45:31 -07:00
|
|
|
testonly = true
|
2017-03-23 05:17:06 -07:00
|
|
|
sources = [
|
|
|
|
|
"generator_unittest.cc",
|
2017-04-07 12:05:08 -07:00
|
|
|
"mock_wavreader.cc",
|
2017-03-28 05:39:59 -07:00
|
|
|
"mock_wavreader.h",
|
|
|
|
|
"mock_wavreader_factory.cc",
|
|
|
|
|
"mock_wavreader_factory.h",
|
2017-03-23 05:17:06 -07:00
|
|
|
]
|
2017-03-18 03:45:31 -07:00
|
|
|
deps = [
|
|
|
|
|
":lib",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../../..:webrtc_common",
|
2017-09-04 05:43:17 -07:00
|
|
|
"../../../../api:array_view",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../../../common_audio",
|
|
|
|
|
"../../../../rtc_base:rtc_base_approved",
|
2018-03-15 15:05:39 +01:00
|
|
|
"../../../../test:fileutils",
|
2017-07-19 10:40:47 -07:00
|
|
|
"../../../../test:test_support",
|
2017-03-18 03:45:31 -07:00
|
|
|
"//testing/gtest",
|
2018-06-19 10:50:11 +02:00
|
|
|
"//third_party/abseil-cpp/absl/types:optional",
|
2017-03-18 03:45:31 -07:00
|
|
|
]
|
2017-03-18 02:29:13 -07:00
|
|
|
}
|