From 44ce4b46f499d00c8e9e27ac60c87e99e16ee5de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20=C3=85hgren?= Date: Tue, 5 Mar 2019 08:40:48 +0100 Subject: [PATCH] Adding a placeholder audio_buffer build target MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This CL adds a placeholder build target in preparation for an upcoming CL (https://webrtc-review.googlesource.com/c/src/+/125081). Bug: webrtc:10366 Change-Id: I5b226e01d561689acf1624e2c0bad30cc1865011 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/125560 Reviewed-by: Sam Zackrisson Commit-Queue: Per Ã…hgren Cr-Commit-Position: refs/heads/master@{#26965} --- modules/audio_processing/BUILD.gn | 11 ++++++++ .../audio_buffer_placeholder.cc | 16 ++++++++++++ .../audio_buffer_placeholder.h | 25 +++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 modules/audio_processing/audio_buffer_placeholder.cc create mode 100644 modules/audio_processing/audio_buffer_placeholder.h diff --git a/modules/audio_processing/BUILD.gn b/modules/audio_processing/BUILD.gn index a54b4598b7..0febbfb424 100644 --- a/modules/audio_processing/BUILD.gn +++ b/modules/audio_processing/BUILD.gn @@ -61,6 +61,14 @@ rtc_source_set("api") { ] } +rtc_static_library("audio_buffer") { + visibility = [ "*" ] + sources = [ + "audio_buffer_placeholder.cc", + "audio_buffer_placeholder.h", + ] +} + rtc_static_library("audio_processing") { visibility = [ "*" ] configs += [ ":apm_debug_dump" ] @@ -128,6 +136,7 @@ rtc_static_library("audio_processing") { deps = [ ":api", ":apm_logging", + ":audio_buffer", ":audio_frame_view", ":audio_generator_interface", ":audio_processing_c", @@ -408,6 +417,7 @@ if (rtc_include_tests) { ":analog_mic_simulation", ":api", ":apm_logging", + ":audio_buffer", ":audio_frame_view", ":audio_processing", ":audioproc_test_utils", @@ -637,6 +647,7 @@ if (rtc_include_tests) { deps = [ ":api", + ":audio_buffer", ":audio_processing", "../../api:array_view", "../../api/audio:audio_frame_api", diff --git a/modules/audio_processing/audio_buffer_placeholder.cc b/modules/audio_processing/audio_buffer_placeholder.cc new file mode 100644 index 0000000000..aa872c33fc --- /dev/null +++ b/modules/audio_processing/audio_buffer_placeholder.cc @@ -0,0 +1,16 @@ +/* + * Copyright (c) 2019 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. + */ + +#include "modules/audio_processing/audio_buffer_placeholder.h" + +// TODO(peah): Remove this file once the audio buffer has been moved to the +// audio_buffer build target. The purpose of this file is to ensure that the +// audio_buffer build target is not empty as that causes the compiler to +// complain. diff --git a/modules/audio_processing/audio_buffer_placeholder.h b/modules/audio_processing/audio_buffer_placeholder.h new file mode 100644 index 0000000000..6c553f41a5 --- /dev/null +++ b/modules/audio_processing/audio_buffer_placeholder.h @@ -0,0 +1,25 @@ +/* + * Copyright (c) 2019 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. + */ + +#ifndef MODULES_AUDIO_PROCESSING_AUDIO_BUFFER_PLACEHOLDER_H_ +#define MODULES_AUDIO_PROCESSING_AUDIO_BUFFER_PLACEHOLDER_H_ + +// TODO(peah): Remove this file once the audio buffer has been moved to the +// audio_buffer build target. The purpose of this file is to ensure that the +// audio_buffer build target is not empty as that causes the compiler to +// complain. +struct AudioBufferPlaceholder { + public: + int dummy; + + private: +}; + +#endif // MODULES_AUDIO_PROCESSING_AUDIO_BUFFER_PLACEHOLDER_H_