gstconfig: Decide GST_EXPORT declaration style at build time
authorNirbheek Chauhan <nirbheek@centricular.com>
Fri, 26 Aug 2016 13:57:22 +0000 (19:27 +0530)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 26 Aug 2016 14:20:50 +0000 (15:20 +0100)
commit22b892b44f5005d7af8d50df313e759bfdb1acd0
tree9572d4d419c93ee3e84076c279e60cfd044eaace
parentc7e8b062e39fcae3bc3a8de7f36ec01e5e88274c
gstconfig: Decide GST_EXPORT declaration style at build time

We only use GST_EXPORT consistently when building with MSVC by using the
visual studio definitions files (win32/common/*.def), so always disable
it when building with Autotools and only enable it with Meson when
building with MSVC.

This allows you to use MinGW to link to a GStreamer built with MSVC and
get the correct function prototypes to find functions and variables in
DLLs.
configure.ac
gst/gstconfig.h.in
meson.build