Makefile.am 3.78 KB
Newer Older
1
lib_LTLIBRARIES = libgstpbutils-@GST_MAJORMINOR@.la
2

3
headers_pbutils = \
4
	pbutils.h         \
5
	codec-utils.h     \
6
	descriptions.h    \
Edward Hervey's avatar
Edward Hervey committed
7
8
	encoding-profile.h	\
	encoding-target.h	\
9
	install-plugins.h \
10
11
	missing-plugins.h \
	gstdiscoverer.h
12

13
# variables used for enum/marshal generation
14
glib_enum_headers = $(headers_pbutils)
15
16
glib_enum_define = PB_UTILS
glib_gen_prefix = pbutils
17
glib_gen_basename = pbutils
18

19
20
21
built_headers_configure = \
	gstpluginsbaseversion.h

22
libgstpbutils_@GST_MAJORMINOR@_la_SOURCES = \
23
	gstpluginsbaseversion.c \
24
	pbutils.c         \
25
	codec-utils.c     \
26
	descriptions.c    \
Edward Hervey's avatar
Edward Hervey committed
27
28
	encoding-profile.c	\
	encoding-target.c	\
29
	install-plugins.c \
30
31
32
	missing-plugins.c \
	gstdiscoverer.c   \
	gstdiscoverer-types.c
33
34

nodist_libgstpbutils_@GST_MAJORMINOR@_la_SOURCES = \
35
36
	pbutils-enumtypes.c	\
	pbutils-marshal.c
37

38
libgstpbutils_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst/pbutils
39
libgstpbutils_@GST_MAJORMINOR@include_HEADERS = \
40
41
	$(headers_pbutils)
nodist_libgstpbutils_@GST_MAJORMINOR@include_HEADERS = \
42
	$(built_headers_configure) \
43
	pbutils-enumtypes.h
44
noinst_HEADERS = \
45
	pbutils-private.h
46
EXTRA_DIST = pbutils-marshal.list
47

48
49
50
libgstpbutils_@GST_MAJORMINOR@_la_LIBADD = \
  $(top_builddir)/gst-libs/gst/video/libgstvideo-@GST_MAJORMINOR@.la \
  $(GST_LIBS)
51
52
libgstpbutils_@GST_MAJORMINOR@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS)
libgstpbutils_@GST_MAJORMINOR@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
53
54

BUILT_SOURCES = \
55
56
57
58
	pbutils-enumtypes.c \
	pbutils-enumtypes.h \
	pbutils-marshal.c   \
	pbutils-marshal.h
59
60
61

CLEANFILES = $(BUILT_SOURCES)

62
# DISTCLEANFILES is for files generated by configure
63
DISTCLEANFILES = $(built_headers_configure)
64

65
include $(top_srcdir)/common/gst-glib-gen.mak
66
67
68
69
70

if HAVE_INTROSPECTION
BUILT_GIRSOURCES = GstPbutils-@GST_MAJORMINOR@.gir

gir_headers=$(patsubst %,$(srcdir)/%, $(libgstpbutils_@GST_MAJORMINOR@include_HEADERS))
71
gir_headers+=$(patsubst %,$(builddir)/%, $(nodist_libgstpbutils_@GST_MAJORMINOR@include_HEADERS))
72
gir_sources=$(patsubst %,$(srcdir)/%, $(libgstpbutils_@GST_MAJORMINOR@_la_SOURCES))
73
gir_sources+=$(patsubst %,$(builddir)/%, $(nodist_libgstpbutils_@GST_MAJORMINOR@_la_SOURCES))
74
75
76
77
gir_cincludes=$(patsubst %,--c-include='gst/pbutils/%',$(libgstpbutils_@GST_MAJORMINOR@include_HEADERS))
gir_cincludes+=$(patsubst %,--c-include='gst/pbutils/%',$(nodist_libgstpbutils_@GST_MAJORMINOR@include_HEADERS))

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

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