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