media: add lock to protect state changes
[platform/upstream/gstreamer.git] / gst / rtsp-server / Makefile.am
1 public_headers = \
2                 rtsp-auth.h \
3                 rtsp-params.h \
4                 rtsp-sdp.h \
5                 rtsp-media.h \
6                 rtsp-media-factory.h \
7                 rtsp-media-factory-uri.h \
8                 rtsp-media-mapping.h \
9                 rtsp-stream.h \
10                 rtsp-stream-transport.h \
11                 rtsp-session.h \
12                 rtsp-session-media.h \
13                 rtsp-session-pool.h \
14                 rtsp-client.h \
15                 rtsp-server.h
16
17 c_sources = \
18         rtsp-auth.c \
19         rtsp-params.c \
20         rtsp-sdp.c \
21         rtsp-media.c \
22         rtsp-media-factory.c \
23         rtsp-media-factory-uri.c \
24         rtsp-media-mapping.c \
25         rtsp-stream.c \
26         rtsp-stream-transport.c \
27         rtsp-session.c \
28         rtsp-session-media.c \
29         rtsp-session-pool.c \
30         rtsp-client.c \
31         rtsp-server.c
32
33 noinst_HEADERS = 
34
35 lib_LTLIBRARIES = \
36         libgstrtspserver-@GST_API_VERSION@.la
37
38 libgstrtspserver_@GST_API_VERSION@_la_SOURCES = \
39     $(c_sources)
40
41 libgstrtspserver_@GST_API_VERSION@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS)
42 libgstrtspserver_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
43 libgstrtspserver_@GST_API_VERSION@_la_LIBADD = \
44         $(GST_PLUGINS_BASE_LIBS) $(GST_BASE_LIBS) \
45     -lgstrtp-@GST_API_VERSION@ -lgstrtsp-@GST_API_VERSION@ \
46             -lgstsdp-@GST_API_VERSION@ \
47             -lgstapp-@GST_API_VERSION@ \
48             $(GST_LIBS) $(GIO_LIBS) $(LIBM)
49 libgstrtspserver_@GST_API_VERSION@_la_LIBTOOLFLAGS = --tag=disable-static
50
51 libgstrtspserver_@GST_API_VERSION@includedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/rtsp-server
52 libgstrtspserver_@GST_API_VERSION@include_HEADERS = $(public_headers)
53
54 CLEANFILES =
55
56 if HAVE_INTROSPECTION
57 BUILT_GIRSOURCES = GstRtspServer-@GST_API_VERSION@.gir
58
59 gir_headers=$(patsubst %,$(srcdir)/%, $(libgstrtspserver_@GST_API_VERSION@include_HEADERS))
60 gir_sources=$(patsubst %,$(srcdir)/%, $(libgstrtspserver_@GST_API_VERSION@_la_SOURCES))
61 gir_cincludes=$(patsubst %,--c-include='gst/rtsp-server/%',$(libgstrtspinclude_HEADERS))
62
63 GstRtspServer-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstrtspserver-@GST_API_VERSION@.la
64         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
65                 $(INTROSPECTION_SCANNER) -v --namespace GstRtspServer \
66                 --nsversion=@GST_API_VERSION@ \
67                 --strip-prefix=Gst \
68                 -I$(top_srcdir) \
69                 -I$(top_builddir) \
70                 -DIN_GOBJECT_INTROSPECTION=1 \
71                 --c-include='gst/gst.h' \
72                 --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
73                 --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-rtsp-@GST_API_VERSION@` \
74                 --add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-sdp-@GST_API_VERSION@` \
75                 --library=libgstrtspserver-@GST_API_VERSION@.la \
76                 --include=Gst-@GST_API_VERSION@ \
77                 --include=GstRtsp-@GST_API_VERSION@ \
78                 --libtool="$(top_builddir)/libtool" \
79                 --pkg gstreamer-@GST_API_VERSION@ \
80                 --pkg gstreamer-rtsp-@GST_API_VERSION@ \
81                 --pkg-export gstreamer-rtsp-server-@GST_API_VERSION@ \
82                 --output $@ \
83                 $(gir_headers) \
84                 $(gir_sources)
85
86 # INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
87 # install anything - we need to install inside our prefix.
88 girdir = $(datadir)/gir-1.0
89 gir_DATA = $(BUILT_GIRSOURCES)
90
91 typelibsdir = $(libdir)/girepository-1.0/
92
93 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
94
95 %.typelib: %.gir $(INTROSPECTION_COMPILER)
96         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
97         $(INTROSPECTION_COMPILER) \
98         --includedir=$(srcdir) \
99         --includedir=$(builddir) \
100         --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
101         --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-rtsp-@GST_API_VERSION@` \
102         --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-sdp-@GST_API_VERSION@` \
103         $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
104
105 CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
106 endif