libs: fix API export/import and 'inconsistent linkage' on MSVC
authorTim-Philipp Müller <tim@centricular.com>
Mon, 24 Sep 2018 08:36:21 +0000 (09:36 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 24 Sep 2018 08:36:21 +0000 (09:36 +0100)
commit62d4c0b179555fa0189d2c8a8e2d81da04a5bc3d
tree264e4ef4bb02ca271f2d13804b31e76b939784c9
parentff51e9a68d0b140a03de5b0d9c72283006e7b215
libs: fix API export/import and 'inconsistent linkage' on MSVC

Export rtsp-server library API in headers when we're building the
library itself, otherwise import the API from the headers.

This fixes linker warnings on Windows when building with MSVC.

Fix up some missing config.h includes when building the lib which
is needed to get the export api define from config.h

https://bugzilla.gnome.org/show_bug.cgi?id=797185
24 files changed:
configure.ac
gst/rtsp-server/Makefile.am
gst/rtsp-server/meson.build
gst/rtsp-server/rtsp-address-pool.c
gst/rtsp-server/rtsp-auth.c
gst/rtsp-server/rtsp-client.c
gst/rtsp-server/rtsp-context.c
gst/rtsp-server/rtsp-media-factory-uri.c
gst/rtsp-server/rtsp-media-factory.c
gst/rtsp-server/rtsp-media.c
gst/rtsp-server/rtsp-mount-points.c
gst/rtsp-server/rtsp-params.c
gst/rtsp-server/rtsp-permissions.c
gst/rtsp-server/rtsp-sdp.c
gst/rtsp-server/rtsp-server-prelude.h
gst/rtsp-server/rtsp-server.c
gst/rtsp-server/rtsp-session-media.c
gst/rtsp-server/rtsp-session-pool.c
gst/rtsp-server/rtsp-session.c
gst/rtsp-server/rtsp-stream-transport.c
gst/rtsp-server/rtsp-stream.c
gst/rtsp-server/rtsp-thread-pool.c
gst/rtsp-server/rtsp-token.c
meson.build