gstreamer/libs/gst/controller
Tim-Philipp Müller 46ed0f0489 libs: fix 'inconsistent DLL linkage' warnings on Windows
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.

https://bugzilla.gnome.org/show_bug.cgi?id=797185
2018-09-23 23:23:01 +01:00
..
.gitignore Update a bunch of gitignores to clean up my git status output 2009-01-23 16:08:40 +00:00
controller-prelude.h libs: fix 'inconsistent DLL linkage' warnings on Windows 2018-09-23 23:23:01 +01:00
controller.h controller: GST_EXPORT -> GST_CONTROLLER_API 2018-03-13 00:57:37 +00:00
gstargbcontrolbinding.c Port gtk-doc comments to their equivalent markdown syntax 2017-01-27 16:36:38 -03:00
gstargbcontrolbinding.h controller: GST_EXPORT -> GST_CONTROLLER_API 2018-03-13 00:57:37 +00:00
gstdirectcontrolbinding.c Port gtk-doc comments to their equivalent markdown syntax 2017-01-27 16:36:38 -03:00
gstdirectcontrolbinding.h controller: GST_EXPORT -> GST_CONTROLLER_API 2018-03-13 00:57:37 +00:00
gstinterpolationcontrolsource.c Update for g_type_class_add_private() deprecation in recent GLib 2018-06-24 12:49:14 +02:00
gstinterpolationcontrolsource.h controller: GST_EXPORT -> GST_CONTROLLER_API 2018-03-13 00:57:37 +00:00
gstlfocontrolsource.c Update for g_type_class_add_private() deprecation in recent GLib 2018-06-24 12:49:14 +02:00
gstlfocontrolsource.h controller: GST_EXPORT -> GST_CONTROLLER_API 2018-03-13 00:57:37 +00:00
gstproxycontrolbinding.c gst: Correctly annotate functions taking floating reference parameters and returning floating references 2017-05-17 10:40:37 +03:00
gstproxycontrolbinding.h controller: GST_EXPORT -> GST_CONTROLLER_API 2018-03-13 00:57:37 +00:00
gsttimedvaluecontrolsource.c Fix typos in comments and docs 2018-05-01 11:18:03 +01:00
gsttimedvaluecontrolsource.h controller: GST_EXPORT -> GST_CONTROLLER_API 2018-03-13 00:57:37 +00:00
gsttriggercontrolsource.c Update for g_type_class_add_private() deprecation in recent GLib 2018-06-24 12:49:14 +02:00
gsttriggercontrolsource.h controller: GST_EXPORT -> GST_CONTROLLER_API 2018-03-13 00:57:37 +00:00
Makefile.am libs: fix 'inconsistent DLL linkage' warnings on Windows 2018-09-23 23:23:01 +01:00
meson.build libs: fix 'inconsistent DLL linkage' warnings on Windows 2018-09-23 23:23:01 +01:00