Makefile.am 3.48 KB
Newer Older
1
2
3
libgstrtspincludedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst/rtsp

libgstrtspinclude_HEADERS = gstrtspbase64.h \
4
5
6
			    gstrtsptransport.h \
			    gstrtspurl.h \
			    gstrtspmessage.h    \
7
8
			    gstrtspconnection.h \
			    gstrtspdefs.h       \
9
			    gstrtspextension.h       \
10
			    gstrtsprange.h
11
12
13
14
15
16

#gstrtspextreal.h    
#gstrtspextwms.h     

lib_LTLIBRARIES = libgstrtsp-@GST_MAJORMINOR@.la

17
18
built_sources = gstrtsp-marshal.c gstrtsp-enumtypes.c
built_headers = gstrtsp-marshal.h gstrtsp-enumtypes.h
19

20
libgstrtsp_@GST_MAJORMINOR@_la_SOURCES = gstrtspbase64.c \
21
22
23
					 gstrtsptransport.c \
					 gstrtspurl.c \
					 gstrtspmessage.c    \
24
25
                                         gstrtspconnection.c \
                                         gstrtspdefs.c       \
26
                                         gstrtspextension.c  \
27
					 gstrtsprange.c
28

29
nodist_libgstrtsp_@GST_MAJORMINOR@_la_SOURCES = $(built_sources)
30
nodist_libgstrtspinclude_HEADERS = gstrtsp-enumtypes.h
31

32
noinst_HEADERS = gstrtsp.h
33

34
35
36
37
#gstrtspextwms.c  
#rtspextreal.c    

libgstrtsp_@GST_MAJORMINOR@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS)
38
libgstrtsp_@GST_MAJORMINOR@_la_LIBADD = $(GST_LIBS) $(WIN32_LIBS) $(HSTRERROR_LIBS)
39
libgstrtsp_@GST_MAJORMINOR@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
40
41

BUILT_SOURCES = $(built_headers) $(built_sources)
42
EXTRA_DIST = gstrtsp-marshal.list
43
44
CLEANFILES = $(BUILT_SOURCES)

45
glib_gen_prefix = __gst_rtsp
46
47
48
glib_enum_define = gst_rtsp
glib_enum_headers = gstrtspdefs.h
glib_gen_basename = gstrtsp
49

50
include $(top_srcdir)/common/gst-glib-gen.mak
51
52
53
54
55

if HAVE_INTROSPECTION
BUILT_GIRSOURCES = GstRtsp-@GST_MAJORMINOR@.gir

gir_headers=$(patsubst %,$(srcdir)/%, $(libgstrtspinclude_HEADERS))
56
gir_headers+=$(patsubst %,$(builddir)/%, $(nodist_libgstrtspinclude_HEADERS))
57
gir_sources=$(patsubst %,$(srcdir)/%, $(libgstrtsp_@GST_MAJORMINOR@_la_SOURCES))
58
gir_sources+=$(patsubst %,$(builddir)/%, $(nodist_libgstrtsp_@GST_MAJORMINOR@_la_SOURCES))
59
60
61
62
gir_cincludes=$(patsubst %,--c-include='gst/audio/%',$(libgstrtspinclude_HEADERS))
gir_cincludes+=$(patsubst %,--c-include='gst/audio/%',$(nodist_libgstrtspinclude_HEADERS))

GstRtsp-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstrtsp-@GST_MAJORMINOR@.la
63
	$(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
64
		$(INTROSPECTION_SCANNER) -v --namespace GstRtsp \
65
		--nsversion=@GST_MAJORMINOR@ \
66
		--strip-prefix=Gst \
67
		$(gir_cincludes) \
68
69
		-I$(top_builddir)/gst-libs \
		-I$(top_srcdir)/gst-libs \
70
		--add-include-path=$(builddir)/../sdp \
71
		--add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-0.10` \
72
		--library=libgstrtsp-0.10.la \
73
74
75
76
77
		--include=Gst-0.10 \
		--include=GstSdp-0.10 \
		--libtool="$(top_builddir)/libtool" \
		--pkg gstreamer-0.10 \
		--pkg gstreamer-sdp-0.10 \
78
		--pkg-export gstreamer-rtsp-0.10 \
79
80
81
82
83
84
85
86
87
88
89
90
91
92
		--output $@ \
		$(gir_headers) \
		$(gir_sources)

# INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
# install anything - we need to install inside our prefix.
girdir = $(datadir)/gir-1.0
gir_DATA = $(BUILT_GIRSOURCES)

typelibsdir = $(libdir)/girepository-1.0/

typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)

%.typelib: %.gir $(INTROSPECTION_COMPILER)
93
94
	$(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
		$(INTROSPECTION_COMPILER) \
95
96
97
		--includedir=$(srcdir) \
		--includedir=$(builddir) \
		--includedir=$(builddir)/../sdp \
98
		--includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-0.10` \
99
		$(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
100
101
102

CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
endif