-Subproject commit ed78bee437dcbe22e6eef0031d9a29d157c0461f
+Subproject commit cd1dee06bf07f094677d0cf3eea4a2e8c2636b24
AC_SUBST(DEPRECATED_CFLAGS)
VISIBILITY_CFLAGS=""
-AS_COMPILER_FLAG([-fvisibility=hidden], [VISIBILITY_CFLAGS="-fvisibility=hidden"])
+AS_COMPILER_FLAG([-fvisibility=hidden], [
+ VISIBILITY_CFLAGS="-fvisibility=hidden"
+ AC_DEFINE(GST_API_EXPORT, [extern __attribute__ ((visibility ("default")))], [public symbol export define])
+], [
+ VISIBILITY_CFLAGS=""
+ AC_DEFINE(GST_API_EXPORT, [extern], [public symbol export define])
+])
AC_SUBST(VISIBILITY_CFLAGS)
VISIBILITY_CXXFLAGS=""
gstdmabuf.c
libgstallocators_@GST_API_VERSION@_la_LIBADD = $(GST_LIBS) $(LIBM)
-libgstallocators_@GST_API_VERSION@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS)
+libgstallocators_@GST_API_VERSION@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS) -DBUILDING_GST_ALLOCATORS
libgstallocators_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
if HAVE_INTROSPECTION
#include <gst/gst.h>
-#ifndef GST_ALLOCATORS_API
-#define GST_ALLOCATORS_API GST_EXPORT
+#ifdef BUILDING_GST_ALLOCATORS
+#define GST_ALLOCATORS_API GST_API_EXPORT /* from config.h */
+#else
+#define GST_ALLOCATORS_API GST_API_IMPORT
#endif
#endif /* __GST_ALLOCATORS_PRELUDE_H__ */
gst_allocators_sources = [ 'gstdmabuf.c', 'gstfdmemory.c', 'gstphysmemory.c']
gstallocators = library('gstallocators-@0@'.format(api_version),
gst_allocators_sources,
- c_args : gst_plugins_base_args,
+ c_args : gst_plugins_base_args + ['-DBUILDING_GST_ALLOCATORS'],
include_directories: [configinc, libsinc],
version : libversion,
soversion : soversion,
libgstapp_@GST_API_VERSION@_la_SOURCES = gstappsrc.c gstappsink.c
nodist_libgstapp_@GST_API_VERSION@_la_SOURCES = $(BUILT_SOURCES)
libgstapp_@GST_API_VERSION@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) \
- $(GST_BASE_CFLAGS) $(GST_CFLAGS)
+ $(GST_BASE_CFLAGS) $(GST_CFLAGS) -DBUILDING_GST_APP
libgstapp_@GST_API_VERSION@_la_LIBADD = $(GST_BASE_LIBS)
libgstapp_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
#include <gst/gst.h>
-#ifndef GST_APP_API
-#define GST_APP_API GST_EXPORT
+#ifdef BUILDING_GST_APP
+#define GST_APP_API GST_API_EXPORT /* from config.h */
+#else
+#define GST_APP_API GST_API_IMPORT
#endif
#endif /* __GST_APP_PRELUDE_H__ */
app_enums = gnome.mkenums_simple('app-enumtypes',
sources : app_mkenum_headers,
+ body_prefix : '#ifdef HAVE_CONFIG_H\n#include "config.h"\n#endif',
header_prefix : '#include <gst/app/app-prelude.h>',
decorator : 'GST_APP_API',
install_header: true,
gstapp = library('gstapp-@0@'.format(api_version),
app_sources, gstapp_h, gstapp_c,
- c_args : gst_plugins_base_args,
+ c_args : gst_plugins_base_args + ['-DBUILDING_GST_APP'],
include_directories: [configinc, libsinc],
version : libversion,
soversion : soversion,
audio-resampler-neon.h
libgstaudio_@GST_API_VERSION@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS) \
- $(ORC_CFLAGS)
+ $(ORC_CFLAGS) -DBUILDING_GST_AUDIO
libgstaudio_@GST_API_VERSION@_la_LIBADD = \
$(top_builddir)/gst-libs/gst/tag/libgsttag-@GST_API_VERSION@.la \
$(GST_BASE_LIBS) $(GST_LIBS) $(LIBM) $(ORC_LIBS)
#include <gst/gst.h>
-#ifndef GST_AUDIO_API
-#define GST_AUDIO_API GST_EXPORT
+#ifdef BUILDING_GST_AUDIO
+#define GST_AUDIO_API GST_API_EXPORT /* from config.h */
+#else
+#define GST_AUDIO_API GST_API_IMPORT
#endif
#endif /* __GST_AUDIO_PRELUDE_H__ */
audio_enums = gnome.mkenums_simple('audio-enumtypes',
sources : audio_mkenum_headers,
+ body_prefix : '#ifdef HAVE_CONFIG_H\n#include "config.h"\n#endif',
header_prefix : '#include <gst/audio/audio-prelude.h>',
decorator : 'GST_AUDIO_API',
install_header: true,
gstaudio = library('gstaudio-@0@'.format(api_version),
audio_src, gstaudio_h, gstaudio_c, orc_c, orc_h,
- c_args : gst_plugins_base_args + simd_cargs,
+ c_args : gst_plugins_base_args + simd_cargs + ['-DBUILDING_GST_AUDIO'],
include_directories: [configinc, libsinc],
link_with : simd_dependencies,
version : libversion,
kiss_fftr_f64.c
libgstfft_@GST_API_VERSION@_la_LIBADD = $(GST_LIBS) $(LIBM)
-libgstfft_@GST_API_VERSION@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS)
+libgstfft_@GST_API_VERSION@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS) -DBUILDING_GST_FFT
libgstfft_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
EXTRA_DIST = kiss_version
#include <gst/gst.h>
-#ifndef GST_FFT_API
-#define GST_FFT_API GST_EXPORT
+#ifdef BUILDING_GST_FFT
+#define GST_FFT_API GST_API_EXPORT /* from config.h */
+#else
+#define GST_FFT_API GST_API_IMPORT
#endif
#endif /* __GST_FFT_PRELUDE_H__ */
gstfft = library('gstfft-@0@'.format(api_version),
fft_sources,
- c_args : gst_plugins_base_args,
+ c_args : gst_plugins_base_args + ['-DBUILDING_GST_FFT'],
include_directories: [configinc, libsinc],
version : libversion,
soversion : soversion,
nodist_configexecinclude_HEADERS = $(built_sys_header_configure)
libgstgl_@GST_API_VERSION@_la_CFLAGS = \
- -DGST_EXPORTS \
+ -DBUILDING_GST_GL \
$(GST_PLUGINS_BASE_CFLAGS) \
$(GST_BASE_CFLAGS) \
$(GST_CFLAGS) \
libgstgl_android_la_CFLAGS = \
-I$(top_srcdir)/gst-libs \
-I$(top_builddir)/gst-libs \
+ -DBUILDING_GST_GL \
$(GL_CFLAGS) \
$(GST_PLUGINS_BASE_CFLAGS) \
$(GST_BASE_CFLAGS) \
libgstgl_cocoa_la_CFLAGS = \
-I$(top_srcdir)/gst-libs \
-I$(top_builddir)/gst-libs \
+ -DBUILDING_GST_GL \
$(GL_CFLAGS) \
$(GST_PLUGINS_BASE_CFLAGS) \
$(GST_BASE_CFLAGS) \
libgstgl_dispmanx_la_CFLAGS = \
-I$(top_srcdir)/gst-libs \
-I$(top_builddir)/gst-libs \
+ -DBUILDING_GST_GL \
$(GL_CFLAGS) \
$(GST_PLUGINS_BASE_CFLAGS) \
$(GST_BASE_CFLAGS) \
libgstgl_eagl_la_CFLAGS = \
-I$(top_srcdir)/gst-libs \
-I$(top_builddir)/gst-libs \
+ -DBUILDING_GST_GL \
$(GL_CFLAGS) \
$(GST_PLUGINS_BASE_CFLAGS) \
$(GST_BASE_CFLAGS) \
libgstgl_egl_la_CFLAGS = \
-I$(top_srcdir)/gst-libs \
-I$(top_builddir)/gst-libs \
+ -DBUILDING_GST_GL \
$(GL_CFLAGS) \
$(GST_PLUGINS_BASE_CFLAGS) \
$(GST_BASE_CFLAGS) \
libgstgl_gbm_la_CFLAGS = \
-I$(top_srcdir)/gst-libs \
-I$(top_builddir)/gst-libs \
+ -DBUILDING_GST_GL \
$(GL_CFLAGS) \
$(GST_PLUGINS_BASE_CFLAGS) \
$(GST_BASE_CFLAGS) \
#include <gst/gst.h>
-#ifndef GST_GL_API
-#define GST_GL_API GST_EXPORT
+#ifdef BUILDING_GST_GL
+#define GST_GL_API GST_API_EXPORT /* from config.h */
+#else
+#define GST_GL_API GST_API_IMPORT
#endif
#endif /* __GST_GL_PRELUDE_H__ */
gstgl = library('gstgl-' + api_version,
gl_sources,
- c_args : gst_plugins_base_args + gl_cpp_args,
- objc_args : gst_plugins_base_args + gl_cpp_args + gl_objc_args,
+ c_args : gst_plugins_base_args + gl_cpp_args + ['-DBUILDING_GST_GL'],
+ objc_args : gst_plugins_base_args + gl_cpp_args + gl_objc_args + ['-DBUILDING_GST_GL'],
include_directories : [configinc, libsinc, gl_includes],
version : libversion,
soversion : soversion,
libgstgl_viv_fb_la_CFLAGS = \
-I$(top_srcdir)/gst-libs \
-I$(top_builddir)/gst-libs \
+ -DBUILDING_GST_GL \
$(GL_CFLAGS) \
$(GST_PLUGINS_BASE_CFLAGS) \
$(GST_BASE_CFLAGS) \
libgstgl_wayland_la_CFLAGS = \
-I$(top_srcdir)/gst-libs \
-I$(top_builddir)/gst-libs \
+ -DBUILDING_GST_GL \
$(GL_CFLAGS) \
$(GST_PLUGINS_BASE_CFLAGS) \
$(GST_BASE_CFLAGS) \
endif
libgstgl_win32_la_CFLAGS = \
- -DGST_EXPORTS \
-I$(top_srcdir)/gst-libs \
-I$(top_builddir)/gst-libs \
+ -DBUILDING_GST_GL \
$(GL_CFLAGS) \
$(GST_PLUGINS_BASE_CFLAGS) \
$(GST_BASE_CFLAGS) \
libgstgl_x11_la_CFLAGS = \
-I$(top_srcdir)/gst-libs \
-I$(top_builddir)/gst-libs \
+ -DBUILDING_GST_GL \
$(GL_CFLAGS) \
$(GST_PLUGINS_BASE_CFLAGS) \
$(GST_BASE_CFLAGS) \
$(top_builddir)/gst-libs/gst/tag/libgsttag-@GST_API_VERSION@.la \
$(GST_BASE_LIBS) \
$(GST_LIBS)
-libgstpbutils_@GST_API_VERSION@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS)
+libgstpbutils_@GST_API_VERSION@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS) -DBUILDING_GST_PBUTILS
libgstpbutils_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
BUILT_SOURCES = \
pbutils_enums = gnome.mkenums_simple('pbutils-enumtypes',
sources : pbutils_mkenum_headers,
+ body_prefix : '#ifdef HAVE_CONFIG_H\n#include "config.h"\n#endif',
header_prefix : '#include <gst/pbutils/pbutils-prelude.h>',
decorator : 'GST_PBUTILS_API',
install_header: true,
gstpbutils_deps = [video_dep, audio_dep, tag_dep]
pbutils = library('gstpbutils-@0@'.format(api_version),
pbutils_sources, gstpbutils_c, gstpbutils_h,
- c_args : gst_plugins_base_args,
+ c_args : gst_plugins_base_args + ['-DBUILDING_GST_PBUTILS'],
include_directories: [configinc, libsinc],
version : libversion,
soversion : soversion,
#include <gst/gst.h>
-#ifndef GST_PBUTILS_API
-#define GST_PBUTILS_API GST_EXPORT
+#ifdef BUILDING_GST_PBUTILS
+#define GST_PBUTILS_API GST_API_EXPORT /* from config.h */
+#else
+#define GST_PBUTILS_API GST_API_IMPORT
#endif
#ifndef GST_DISABLE_DEPRECATED
$(top_builddir)/gst-libs/gst/tag/libgsttag-@GST_API_VERSION@.la \
$(GST_BASE_LIBS) $(GST_LIBS)
-libgstriff_@GST_API_VERSION@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS)
+libgstriff_@GST_API_VERSION@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS) -DBUILDING_GST_RIFF
libgstriff_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
# *** GIR DISABLED for this library ***
riff_deps = [audio_dep, tag_dep]
gstriff = library('gstriff-@0@'.format(api_version),
riff_sources,
- c_args : gst_plugins_base_args,
+ c_args : gst_plugins_base_args + ['-DBUILDING_GST_RIFF'],
include_directories: [configinc, libsinc],
version : libversion,
soversion : soversion,
#include <gst/gst.h>
-#ifndef GST_RIFF_API
-#define GST_RIFF_API GST_EXPORT
+#ifdef BUILDING_GST_RIFF
+#define GST_RIFF_API GST_API_EXPORT /* from config.h */
+#else
+#define GST_RIFF_API GST_API_IMPORT
#endif
#endif /* __GST_RIFF_PRELUDE_H__ */
built_sources = gstrtp-enumtypes.c
built_headers = gstrtp-enumtypes.h
-libgstrtp_@GST_API_VERSION@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS)
+libgstrtp_@GST_API_VERSION@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS) -DBUILDING_GST_RTP
libgstrtp_@GST_API_VERSION@_la_LIBADD = $(GST_BASE_LIBS) $(GST_LIBS)
libgstrtp_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
rtp_enums = gnome.mkenums_simple('gstrtp-enumtypes',
sources : rtp_headers,
+ body_prefix : '#ifdef HAVE_CONFIG_H\n#include "config.h"\n#endif',
header_prefix : '#include <gst/rtp/rtp-prelude.h>',
decorator : 'GST_RTP_API',
install_header: true,
gstrtp_deps = [audio_dep, gst_base_dep]
gst_rtp = library('gstrtp-@0@'.format(api_version),
rtp_sources, gstrtp_enum_c, gstrtp_enum_h,
- c_args : gst_plugins_base_args,
+ c_args : gst_plugins_base_args + ['-DBUILDING_GST_RTP'],
include_directories: [configinc, libsinc],
version : libversion,
soversion : soversion,
#include <gst/gst.h>
-#ifndef GST_RTP_API
-#define GST_RTP_API GST_EXPORT
+#ifdef BUILDING_GST_RTP
+#define GST_RTP_API GST_API_EXPORT /* from config.h */
+#else
+#define GST_RTP_API GST_API_IMPORT
#endif
#endif /* __GST_RTP_PRELUDE_H__ */
#gstrtspextwms.c
#rtspextreal.c
-libgstrtsp_@GST_API_VERSION@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(GIO_CFLAGS)
+libgstrtsp_@GST_API_VERSION@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(GIO_CFLAGS) -DBUILDING_GST_RTSP
libgstrtsp_@GST_API_VERSION@_la_LIBADD = $(GST_BASE_LIBS) $(GST_LIBS) $(GIO_LIBS) $(LIBM)
libgstrtsp_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS) $(WIN32_LIBS)
rtsp_enums = gnome.mkenums_simple('gstrtsp-enumtypes',
sources : rtsp_headers,
+ body_prefix : '#ifdef HAVE_CONFIG_H\n#include "config.h"\n#endif',
header_prefix : '#include <gst/rtsp/rtsp-prelude.h>',
decorator : 'GST_RTSP_API',
install_header: true,
gst_rtsp = library('gstrtsp-@0@'.format(api_version),
rtsp_sources,
gstrtsp_h, gstrtsp_c,
- c_args : gst_plugins_base_args,
+ c_args : gst_plugins_base_args + ['-DBUILDING_GST_RTSP'],
include_directories: [configinc, libsinc],
version : libversion,
soversion : soversion,
#include <gst/gst.h>
-#ifndef GST_RTSP_API
-#define GST_RTSP_API GST_EXPORT
+#ifdef BUILDING_GST_RTSP
+#define GST_RTSP_API GST_API_EXPORT /* from config.h */
+#else
+#define GST_RTSP_API GST_API_IMPORT
#endif
#ifndef GST_DISABLE_DEPRECATED
libgstsdp_@GST_API_VERSION@_la_SOURCES = gstsdpmessage.c gstmikey.c
-libgstsdp_@GST_API_VERSION@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(GIO_CFLAGS)
+libgstsdp_@GST_API_VERSION@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(GIO_CFLAGS) -DBUILDING_GST_SDP
libgstsdp_@GST_API_VERSION@_la_LIBADD = $(top_builddir)/gst-libs/gst/rtp/libgstrtp-@GST_API_VERSION@.la $(GST_LIBS) $(GIO_LIBS)
libgstsdp_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
gst_sdp_sources = ['gstsdpmessage.c', 'gstmikey.c']
gstsdp = library('gstsdp-@0@'.format(api_version),
gst_sdp_sources,
- c_args : gst_plugins_base_args,
+ c_args : gst_plugins_base_args + ['-DBUILDING_GST_SDP'],
include_directories: [configinc, libsinc],
version : libversion,
soversion : soversion,
#include <gst/gst.h>
-#ifndef GST_SDP_API
-#define GST_SDP_API GST_EXPORT
+#ifdef BUILDING_GST_SDP
+#define GST_SDP_API GST_API_EXPORT /* from config.h */
+#else
+#define GST_SDP_API GST_API_IMPORT
#endif
#endif /* __GST_SDP_PRELUDE_H__ */
nodist_libgsttag_@GST_API_VERSION@_la_SOURCES = $(BUILT_SOURCES)
libgsttag_@GST_API_VERSION@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) \
- $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(ZLIB_CFLAGS) \
+ $(GST_BASE_CFLAGS) $(GST_CFLAGS) $(ZLIB_CFLAGS) -DBUILDING_GST_TAG \
-DLICENSE_TRANSLATIONS_PATH=\"$(pkgdatadir)/@GST_API_VERSION@/license-translations.dict\"
libgsttag_@GST_API_VERSION@_la_LIBADD = $(GST_BASE_LIBS) $(GST_LIBS) $(LIBM) $(ZLIB_LIBS)
libgsttag_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
tag_enums = gnome.mkenums_simple('tag-enumtypes',
sources : tag_mkenum_headers,
+ body_prefix : '#ifdef HAVE_CONFIG_H\n#include "config.h"\n#endif',
header_prefix : '#include <gst/tag/tag-prelude.h>',
decorator : 'GST_TAG_API',
install_header: true,
tag_deps = [gst_base_dep, libm, zlib_dep]
gsttag = library('gsttag-@0@'.format(api_version),
tag_sources, gsttag_h, gsttag_c,
- c_args : gst_plugins_base_args + gst_tag_args,
+ c_args : gst_plugins_base_args + gst_tag_args + ['-DBUILDING_GST_TAG'],
include_directories: [configinc, libsinc],
version : libversion,
soversion : soversion,
#include <gst/gst.h>
-#ifndef GST_TAG_API
-#define GST_TAG_API GST_EXPORT
+#ifdef BUILDING_GST_TAG
+#define GST_TAG_API GST_API_EXPORT /* from config.h */
+#else
+#define GST_TAG_API GST_API_IMPORT
#endif
#endif /* __GST_TAG_PRELUDE_H__ */
noinst_HEADERS = gstvideoutilsprivate.h
libgstvideo_@GST_API_VERSION@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS) \
- $(ORC_CFLAGS)
+ $(ORC_CFLAGS) -DBUILDING_GST_VIDEO
libgstvideo_@GST_API_VERSION@_la_LIBADD = $(GST_BASE_LIBS) $(GST_LIBS) $(ORC_LIBS) $(LIBM)
libgstvideo_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
video_enums = gnome.mkenums_simple('video-enumtypes',
sources : video_mkenum_headers,
+ body_prefix : '#ifdef HAVE_CONFIG_H\n#include "config.h"\n#endif',
header_prefix : '#include <gst/video/video-prelude.h>',
decorator : 'GST_VIDEO_API',
install_header: true,
gstvideo = library('gstvideo-@0@'.format(api_version),
video_sources, gstvideo_h, gstvideo_c, orc_c, orc_h,
- c_args : gst_plugins_base_args,
+ c_args : gst_plugins_base_args + ['-DBUILDING_GST_VIDEO'],
include_directories: [configinc, libsinc],
version : libversion,
soversion : soversion,
#include <gst/gst.h>
-#ifndef GST_VIDEO_API
-#define GST_VIDEO_API GST_EXPORT
+#ifdef BUILDING_GST_VIDEO
+#define GST_VIDEO_API GST_API_EXPORT /* from config.h */
+#else
+#define GST_VIDEO_API GST_API_IMPORT
#endif
#endif /* __GST_VIDEO_PRELUDE_H__ */
add_project_link_arguments('-Wl,-Bsymbolic-functions', language : 'c')
endif
+core_conf = configuration_data()
+
# Symbol visibility
-if cc.has_argument('-fvisibility=hidden')
+if cc.get_id() == 'msvc'
+ export_define = '__declspec(dllexport) extern'
+elif cc.has_argument('-fvisibility=hidden')
add_project_arguments('-fvisibility=hidden', language: 'c')
+ export_define = 'extern __attribute__ ((visibility ("default")))'
+else
+ export_define = 'extern'
endif
+# Passing this through the command line would be too messy
+core_conf.set('GST_API_EXPORT', export_define)
+
# Disable strict aliasing
if cc.has_argument('-fno-strict-aliasing')
add_project_arguments('-fno-strict-aliasing', language: 'c')
add_project_arguments('-DG_DISABLE_CHECKS', language: 'c')
endif
-core_conf = configuration_data()
check_headers = [
['HAVE_DLFCN_H', 'dlfcn.h'],
['HAVE_EMMINTRIN_H', 'emmintrin.h'],