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