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_