Makefile.am 3.5 KB
Newer Older
1
2
lib_LTLIBRARIES = libgstinterfaces-@GST_MAJORMINOR@.la
libgstinterfacesincludedir = \
Benjamin Otte's avatar
Benjamin Otte committed
3
        $(includedir)/gstreamer-@GST_MAJORMINOR@/gst/interfaces
4
5
6
7
8
9
10
11
12

headers_interfaces = 		\
	colorbalance.h		\
	colorbalancechannel.h	\
	mixer.h			\
	mixeroptions.h		\
	mixertrack.h		\
	navigation.h		\
	propertyprobe.h		\
13
	streamvolume.h          \
14
15
16
	tuner.h			\
	tunernorm.h		\
	tunerchannel.h		\
17
	videoorientation.h	\
18
19
20
	xoverlay.h

# variables used for enum/marshal generation
21
22
glib_enum_headers = $(headers_interfaces)
glib_enum_define = GST_INTERFACES
23
glib_gen_prefix = gst_interfaces
24
glib_gen_basename = interfaces
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47

built_sources = \
	interfaces-marshal.c \
	interfaces-enumtypes.c

built_headers = \
	interfaces-marshal.h \
	interfaces-enumtypes.h

libgstinterfacesinclude_HEADERS = \
	$(headers_interfaces)

nodist_libgstinterfacesinclude_HEADERS = \
	interfaces-enumtypes.h

libgstinterfaces_@GST_MAJORMINOR@_la_SOURCES = \
	colorbalance.c		\
	colorbalancechannel.c	\
	mixer.c			\
	mixeroptions.c		\
	mixertrack.c		\
	navigation.c		\
	propertyprobe.c		\
48
	streamvolume.c          \
49
50
51
	tuner.c			\
	tunernorm.c		\
	tunerchannel.c		\
52
	videoorientation.c	\
53
54
55
56
57
58
	xoverlay.c

nodist_libgstinterfaces_@GST_MAJORMINOR@_la_SOURCES = 	\
	$(built_sources)				\
	interfaces-marshal.h

59
libgstinterfaces_@GST_MAJORMINOR@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS)
60
libgstinterfaces_@GST_MAJORMINOR@_la_LIBADD = $(GST_LIBS) $(LIBM) 
61
libgstinterfaces_@GST_MAJORMINOR@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
62
63
64
65
66
67
68
69
70

BUILT_SOURCES = \
	$(built_sources) \
	$(built_headers)

EXTRA_DIST = interfaces-marshal.list

CLEANFILES = $(BUILT_SOURCES)

71
include $(top_srcdir)/common/gst-glib-gen.mak
72
73
74
75
76

if HAVE_INTROSPECTION
BUILT_GIRSOURCES = GstInterfaces-@GST_MAJORMINOR@.gir

gir_headers=$(patsubst %,$(srcdir)/%, $(libgstinterfacesinclude_HEADERS))
77
gir_headers+=$(patsubst %,$(builddir)/%, $(nodist_libgstinterfacesinclude_HEADERS))
78
gir_sources=$(patsubst %,$(srcdir)/%, $(libgstinterfaces_@GST_MAJORMINOR@_la_SOURCES))
79
gir_sources+=$(patsubst %,$(builddir)/%, $(nodist_libgstinterfaces_@GST_MAJORMINOR@_la_SOURCES))
80
81
82
83
gir_cincludes=$(patsubst %,--c-include='gst/interfaces/%',$(libgstinterfacesinclude_HEADERS))
gir_cincludes+=$(patsubst %,--c-include='gst/interfaces/%',$(nodist_libgstinterfacesinclude_HEADERS))

GstInterfaces-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstinterfaces-@GST_MAJORMINOR@.la
84
	$(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
85
		$(INTROSPECTION_SCANNER) -v --namespace GstInterfaces \
86
		--nsversion=@GST_MAJORMINOR@ \
87
		--strip-prefix=Gst \
88
89
		$(gir_cincludes) \
		-I$(top_srcdir)/gst-libs \
90
		-I$(top_builddir)/gst-libs \
91
		--add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-0.10` \
92
		--library=libgstinterfaces-0.10.la \
93
94
95
		--include=Gst-0.10 \
		--libtool="$(top_builddir)/libtool" \
		--pkg gstreamer-0.10 \
96
		--pkg-export gstreamer-interfaces-0.10 \
97
98
99
100
101
102
103
104
105
106
107
108
109
110
		--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)
111
112
	$(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
		$(INTROSPECTION_COMPILER) \
113
114
		--includedir=$(srcdir) \
		--includedir=$(builddir) \
115
		--includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-0.10` \
116
		$(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
117
118
119

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