diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-08-26 19:27:22 +0530 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2016-08-26 15:20:50 +0100 |
commit | 22b892b44f5005d7af8d50df313e759bfdb1acd0 (patch) | |
tree | 9572d4d419c93ee3e84076c279e60cfd044eaace /configure.ac | |
parent | c7e8b062e39fcae3bc3a8de7f36ec01e5e88274c (diff) |
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.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index f663bf33a..7533bb9c9 100644 --- a/configure.ac +++ b/configure.ac @@ -131,6 +131,11 @@ AG_GST_SET_PACKAGE_RELEASE_DATETIME_WITH_NANO([$PACKAGE_VERSION_NANO], ["${srcdir}/gstreamer.doap"], [$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR.$PACKAGE_VERSION_MICRO]) +# We only use this when building with MSVC, which is only done with the +# alternate Meson build system files +GSTCONFIG_USE_MSVC_DECLSPEC=0 +AC_SUBST(GSTCONFIG_USE_MSVC_DECLSPEC) + dnl check for bash completion AC_ARG_WITH([bash-completion-dir], AS_HELP_STRING([--with-bash-completion-dir[=PATH]], |