Adding missing RTC_EXPORT for component build.

Bug: webrtc:9419
Change-Id: Ifa5d21edc708b5012b71e2e5101e10c6352a7218
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/157162
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#29533}
This commit is contained in:
Mirko Bonadei
2019-10-18 09:52:22 +02:00
committed by Commit Bot
parent 05269ecd0b
commit c66e004edc
12 changed files with 20 additions and 8 deletions

View File

@ -79,6 +79,7 @@ rtc_library("audio_encoder_isac_fix") {
"..:audio_codecs_api",
"../../../modules/audio_coding:isac_fix",
"../../../rtc_base:rtc_base_approved",
"../../../rtc_base/system:rtc_export",
"//third_party/abseil-cpp/absl/strings",
"//third_party/abseil-cpp/absl/types:optional",
]
@ -95,6 +96,7 @@ rtc_library("audio_decoder_isac_fix") {
"..:audio_codecs_api",
"../../../modules/audio_coding:isac_fix",
"../../../rtc_base:rtc_base_approved",
"../../../rtc_base/system:rtc_export",
"//third_party/abseil-cpp/absl/strings",
"//third_party/abseil-cpp/absl/types:optional",
]

View File

@ -18,12 +18,13 @@
#include "api/audio_codecs/audio_codec_pair_id.h"
#include "api/audio_codecs/audio_decoder.h"
#include "api/audio_codecs/audio_format.h"
#include "rtc_base/system/rtc_export.h"
namespace webrtc {
// iSAC decoder API (fixed-point implementation) for use as a template
// parameter to CreateAudioDecoderFactory<...>().
struct AudioDecoderIsacFix {
struct RTC_EXPORT AudioDecoderIsacFix {
struct Config {}; // Empty---no config values needed!
static absl::optional<Config> SdpToConfig(const SdpAudioFormat& audio_format);
static void AppendSupportedDecoders(std::vector<AudioCodecSpec>* specs);

View File

@ -18,12 +18,13 @@
#include "api/audio_codecs/audio_codec_pair_id.h"
#include "api/audio_codecs/audio_encoder.h"
#include "api/audio_codecs/audio_format.h"
#include "rtc_base/system/rtc_export.h"
namespace webrtc {
// iSAC encoder API (fixed-point implementation) for use as a template
// parameter to CreateAudioEncoderFactory<...>().
struct AudioEncoderIsacFix {
struct RTC_EXPORT AudioEncoderIsacFix {
struct Config {
bool IsOk() const { return frame_size_ms == 30 || frame_size_ms == 60; }
int frame_size_ms = 30;

View File

@ -54,7 +54,7 @@ class EncodedImageBufferInterface : public rtc::RefCountInterface {
};
// Basic implementation of EncodedImageBufferInterface.
class EncodedImageBuffer : public EncodedImageBufferInterface {
class RTC_EXPORT EncodedImageBuffer : public EncodedImageBufferInterface {
public:
static rtc::scoped_refptr<EncodedImageBuffer> Create() { return Create(0); }
static rtc::scoped_refptr<EncodedImageBuffer> Create(size_t size);

View File

@ -58,6 +58,7 @@ rtc_library("common_video") {
"../rtc_base:checks",
"../rtc_base:rtc_task_queue",
"../rtc_base:safe_minmax",
"../rtc_base/system:rtc_export",
"../system_wrappers:metrics",
"//third_party/abseil-cpp/absl/types:optional",
"//third_party/libyuv",

View File

@ -17,6 +17,7 @@
#include "absl/types/optional.h"
#include "rtc_base/critical_section.h"
#include "rtc_base/rate_statistics.h"
#include "rtc_base/system/rtc_export.h"
#include "rtc_base/thread_annotations.h"
namespace webrtc {
@ -24,7 +25,7 @@ namespace webrtc {
// Certain hardware encoders tend to consistently overshoot the bitrate that
// they are configured to encode at. This class estimates an adjusted bitrate
// that when set on the encoder will produce the desired bitrate.
class BitrateAdjuster {
class RTC_EXPORT BitrateAdjuster {
public:
// min_adjusted_bitrate_pct and max_adjusted_bitrate_pct are the lower and
// upper bound outputted adjusted bitrates as a percentage of the target

View File

@ -23,6 +23,7 @@
#include "api/scoped_refptr.h"
#include "api/video/video_frame.h"
#include "api/video/video_frame_buffer.h"
#include "rtc_base/system/rtc_export.h"
namespace webrtc {
@ -133,7 +134,7 @@ void NV12Scale(uint8_t* tmp_buffer,
// Helper class for directly converting and scaling NV12 to I420. The Y-plane
// will be scaled directly to the I420 destination, which makes this faster
// than separate NV12->I420 + I420->I420 scaling.
class NV12ToI420Scaler {
class RTC_EXPORT NV12ToI420Scaler {
public:
NV12ToI420Scaler();
~NV12ToI420Scaler();

View File

@ -242,6 +242,7 @@ if (is_mac) {
"../../rtc_base:checks",
"../../rtc_base:rtc_base_approved",
"../../rtc_base/synchronization:rw_lock_wrapper",
"../../rtc_base/system:rtc_export",
"../../sdk:helpers_objc",
]
libs = [

View File

@ -16,6 +16,7 @@
#include <vector>
#include "modules/desktop_capture/desktop_geometry.h"
#include "rtc_base/system/rtc_export.h"
namespace webrtc {
@ -48,7 +49,7 @@ struct MacDisplayConfiguration {
typedef std::vector<MacDisplayConfiguration> MacDisplayConfigurations;
// Describes the configuration of the whole desktop.
struct MacDesktopConfiguration {
struct RTC_EXPORT MacDesktopConfiguration {
// Used to request bottom-up or top-down coordinates.
enum Origin { BottomLeftOrigin, TopLeftOrigin };

View File

@ -186,6 +186,7 @@ rtc_library("criticalsection") {
":checks",
":macromagic",
":platform_thread_types",
"system:rtc_export",
"system:unused",
]
}

View File

@ -14,6 +14,7 @@
#include "rtc_base/checks.h"
#include "rtc_base/constructor_magic.h"
#include "rtc_base/platform_thread_types.h"
#include "rtc_base/system/rtc_export.h"
#include "rtc_base/thread_annotations.h"
#if defined(WEBRTC_WIN)
@ -45,7 +46,7 @@ namespace rtc {
// Locking methods (Enter, TryEnter, Leave)are const to permit protecting
// members inside a const context without requiring mutable CriticalSections
// everywhere. CriticalSection is reentrant lock.
class RTC_LOCKABLE CriticalSection {
class RTC_LOCKABLE RTC_EXPORT CriticalSection {
public:
CriticalSection();
~CriticalSection();

View File

@ -17,10 +17,11 @@
#include <memory>
#include "absl/types/optional.h"
#include "rtc_base/system/rtc_export.h"
namespace webrtc {
class RateStatistics {
class RTC_EXPORT RateStatistics {
public:
static constexpr float kBpsScale = 8000.0f;