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