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