gstreamer/gst-libs/gst/audio
Tim-Philipp Müller dc29bc4e13 libs: fix API export/import and 'inconsistent linkage' on MSVC
For each lib we build export its own API in headers when we're
building it, otherwise import the API from the headers.

This fixes linker warnings on Windows when building with MSVC.

The problem was that we had defined all GST_*_API decorators
unconditionally to GST_EXPORT. This was intentional and only
supposed to be temporary, but caused linker warnings because
we tell the linker that we want to export all symbols even
those from externall DLLs, and when the linker notices that
they were in external DLLS and not present locally it warns.

What we need to do when building each library is: export
the library's own symbols and import all other symbols. To
this end we define e.g. BUILDING_GST_FOO and then we define
the GST_FOO_API decorator either to export or to import
symbols depending on whether BUILDING_GST_FOO is set or not.
That way external users of each library API automatically
get the import.

While we're at it, add new GST_API_EXPORT in config.h and use
that for GST_*_API decorators instead of GST_EXPORT.

The right export define depends on the toolchain and whether
we're using -fvisibility=hidden or not, so it's better to set it
to the right thing directly than hard-coding a compiler whitelist
in the public header.

We put the export define into config.h instead of passing it via the
command line to the compiler because it might contain spaces and brackets
and in the autotools scenario we'd have to pass that through multiple
layers of plumbing and Makefile/shell escaping and we're just not going
to be *that* lucky.

The export define is only used if we're compiling our lib, not by external
users of the lib headers, so it's not a problem to put it into config.h

Also, this means all .c files of libs need to include config.h
to get the export marker defined, so fix up a few that didn't
include config.h.

This commit depends on a common submodule commit that makes gst-glib-gen.mak
add an #include "config.h" to generated enum/marshal .c files for the
autotools build.

https://bugzilla.gnome.org/show_bug.cgi?id=797185
2018-09-24 08:45:34 +01:00
..
.gitignore Update .gitignore 2012-08-08 09:06:30 +01:00
audio-buffer.c audio-buffer: fix typo in assignment that causes buggy behavior 2018-07-24 15:09:25 +03:00
audio-buffer.h libs: audio: Implement GstAudioBuffer & GstAudioMeta 2018-07-03 14:06:43 +03:00
audio-channel-mixer.c libs: audio-channel-mixer: add support for non-interleaved audio buffers 2018-07-11 16:26:13 +03:00
audio-channel-mixer.h audio: GST_EXPORT -> GST_AUDIO_API 2018-03-13 10:36:56 +00:00
audio-channels.c libs: audio: implement planar buffer support in gst_audio_buffer_reorder_channels() 2018-07-12 13:38:27 +03:00
audio-channels.h audio: GST_EXPORT -> GST_AUDIO_API 2018-03-13 10:36:56 +00:00
audio-converter.c libs: audio-converter: complete code to support non-interleaved audio buffers 2018-07-11 16:26:13 +03:00
audio-converter.h audio: GST_EXPORT -> GST_AUDIO_API 2018-03-13 10:36:56 +00:00
audio-format.c audio-format: add TRUNCATE_RANGE flag 2015-11-03 12:12:08 +01:00
audio-format.h libs: Documentation cleanup 2018-04-02 08:53:28 +02:00
audio-info.c audio: fix some GIR annotations 2018-04-23 19:33:19 +02:00
audio-info.h audio: GST_EXPORT -> GST_AUDIO_API 2018-03-13 10:36:56 +00:00
audio-prelude.h libs: fix API export/import and 'inconsistent linkage' on MSVC 2018-09-24 08:45:34 +01:00
audio-quantize.c gst-libs: include config.h in all source files 2018-08-13 09:23:34 +01:00
audio-quantize.h audio: GST_EXPORT -> GST_AUDIO_API 2018-03-13 10:36:56 +00:00
audio-resampler-macros.h audioresample: Separate out CFLAGS used for SSE* code 2016-09-29 18:37:08 +05:30
audio-resampler-neon.h audioresample: Separate out CFLAGS used for SSE* code 2016-09-29 18:37:08 +05:30
audio-resampler-private.h audioresample: Separate out CFLAGS used for SSE* code 2016-09-29 18:37:08 +05:30
audio-resampler-x86-sse.c audioresample: Separate out CFLAGS used for SSE* code 2016-09-29 18:37:08 +05:30
audio-resampler-x86-sse.h audioresample: Separate out CFLAGS used for SSE* code 2016-09-29 18:37:08 +05:30
audio-resampler-x86-sse2.c audioresample: Separate out CFLAGS used for SSE* code 2016-09-29 18:37:08 +05:30
audio-resampler-x86-sse2.h audioresample: Separate out CFLAGS used for SSE* code 2016-09-29 18:37:08 +05:30
audio-resampler-x86-sse41.c audio-resampler: Fix integer overflow in clamping code 2017-01-30 12:35:04 +02:00
audio-resampler-x86-sse41.h audioresample: Separate out CFLAGS used for SSE* code 2016-09-29 18:37:08 +05:30
audio-resampler-x86.h audiorsample: Fix build on 32-bit x86 2016-09-29 19:45:16 +05:30
audio-resampler.c libs: audio-resampler: add support for consuming non-interleaved input buffers 2018-07-11 16:26:13 +03:00
audio-resampler.h audio: GST_EXPORT -> GST_AUDIO_API 2018-03-13 10:36:56 +00:00
audio.c libs: audio: add a new gst_audio_buffer_truncate() function 2018-07-12 12:08:10 +03:00
audio.h audio: use right export decorator 2018-08-26 11:16:10 +02:00
dbesi0.c audio-converter: add resampler 2016-03-28 13:13:59 +02:00
gstaudioaggregator.c audioaggregator: Also run the audio-specific caps fixation for audio aggregator subclasses that can't convert 2018-08-16 18:03:37 +03:00
gstaudioaggregator.h libs: Documentation cleanup 2018-04-02 08:53:28 +02:00
gstaudiobasesink.c gst-libs: include config.h in all source files 2018-08-13 09:23:34 +01:00
gstaudiobasesink.h audio: GST_EXPORT -> GST_AUDIO_API 2018-03-13 10:36:56 +00:00
gstaudiobasesrc.c audiobasesrc: Round down segsize to an integer number of samples 2018-06-29 07:38:20 +02:00
gstaudiobasesrc.h audio: GST_EXPORT -> GST_AUDIO_API 2018-03-13 10:36:56 +00:00
gstaudiocdsrc.c audio: Update for g_type_class_add_private() deprecation in recent GLib 2018-06-23 21:49:48 +02:00
gstaudiocdsrc.h audio: GST_EXPORT -> GST_AUDIO_API 2018-03-13 10:36:56 +00:00
gstaudioclock.c audioclock: Sink the reference in the constructor 2017-05-17 10:40:52 +03:00
gstaudioclock.h audio: GST_EXPORT -> GST_AUDIO_API 2018-03-13 10:36:56 +00:00
gstaudiodecoder.c gstaudiodecoder: take into account GstAudioMeta::samples on the output buffers 2018-07-23 15:27:08 +03:00
gstaudiodecoder.h audio: GST_EXPORT -> GST_AUDIO_API 2018-03-13 10:36:56 +00:00
gstaudioencoder.c audio: Update for g_type_class_add_private() deprecation in recent GLib 2018-06-23 21:49:48 +02:00
gstaudioencoder.h audio: GST_EXPORT -> GST_AUDIO_API 2018-03-13 10:36:56 +00:00
gstaudiofilter.c docs: Convert gtkdoc comments to markdown 2017-03-10 18:19:17 -03:00
gstaudiofilter.h audio: GST_EXPORT -> GST_AUDIO_API 2018-03-13 10:36:56 +00:00
gstaudioiec61937.c docs: Convert gtkdoc comments to markdown 2017-03-10 18:19:17 -03:00
gstaudioiec61937.h audio: GST_EXPORT -> GST_AUDIO_API 2018-03-13 10:36:56 +00:00
gstaudiometa.c gst-libs: include config.h in all source files 2018-08-13 09:23:34 +01:00
gstaudiometa.h libs: audio: Implement GstAudioBuffer & GstAudioMeta 2018-07-03 14:06:43 +03:00
gstaudiopack-dist.c Update disted backup ORC files 2018-02-15 07:14:20 +01:00
gstaudiopack-dist.h audio: update ORC dist files 2015-11-06 17:54:21 +01:00
gstaudiopack.orc gstaudiopack.orc: pack_u32be_swap: actually swap 2018-02-15 01:32:54 +01:00
gstaudioringbuffer.c gst-libs: include config.h in all source files 2018-08-13 09:23:34 +01:00
gstaudioringbuffer.h libs: Documentation cleanup 2018-04-02 08:53:28 +02:00
gstaudiosink.c gstaudiosrc/sink: Set audio ringbuffer thread priority 2018-09-11 00:41:59 +05:30
gstaudiosink.h audio: GST_EXPORT -> GST_AUDIO_API 2018-03-13 10:36:56 +00:00
gstaudiosrc.c gstaudiosrc/sink: Set audio ringbuffer thread priority 2018-09-11 00:41:59 +05:30
gstaudiosrc.h audio: GST_EXPORT -> GST_AUDIO_API 2018-03-13 10:36:56 +00:00
gstaudiostreamalign.c libs: Documentation cleanup 2018-04-02 08:53:28 +02:00
gstaudiostreamalign.h audiostreamalign: Mark the whole type as new in 1.14 2018-03-15 09:58:11 +02:00
gstaudioutilsprivate.c gstaudiosrc/sink: Set audio ringbuffer thread priority 2018-09-11 00:41:59 +05:30
gstaudioutilsprivate.h gstaudiosrc/sink: Set audio ringbuffer thread priority 2018-09-11 00:41:59 +05:30
Makefile.am libs: fix API export/import and 'inconsistent linkage' on MSVC 2018-09-24 08:45:34 +01:00
meson.build libs: fix API export/import and 'inconsistent linkage' on MSVC 2018-09-24 08:45:34 +01:00
streamvolume.c docs: Convert gtkdoc comments to markdown 2017-03-10 18:19:17 -03:00
streamvolume.h audio: GST_EXPORT -> GST_AUDIO_API 2018-03-13 10:36:56 +00:00
TODO gst-libs/gst/audio/TODO: Update TODO 2006-02-17 10:15:52 +00:00