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