1 lib_LTLIBRARIES = libgstpbutils-@GST_MAJORMINOR@.la
13 # variables used for enum/marshal generation
14 glib_enum_headers = $(headers_pbutils)
15 glib_enum_define = PB_UTILS
16 glib_gen_prefix = pbutils
17 glib_gen_basename = pbutils
19 built_headers_configure = \
20 gstpluginsbaseversion.h
22 libgstpbutils_@GST_MAJORMINOR@_la_SOURCES = \
23 gstpluginsbaseversion.c \
34 nodist_libgstpbutils_@GST_MAJORMINOR@_la_SOURCES = \
38 libgstpbutils_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst/pbutils
39 libgstpbutils_@GST_MAJORMINOR@include_HEADERS = \
41 nodist_libgstpbutils_@GST_MAJORMINOR@include_HEADERS = \
42 $(built_headers_configure) \
46 EXTRA_DIST = pbutils-marshal.list
48 libgstpbutils_@GST_MAJORMINOR@_la_LIBADD = \
49 $(top_builddir)/gst-libs/gst/video/libgstvideo-@GST_MAJORMINOR@.la \
51 libgstpbutils_@GST_MAJORMINOR@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS)
52 libgstpbutils_@GST_MAJORMINOR@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
60 CLEANFILES = $(BUILT_SOURCES)
62 # DISTCLEANFILES is for files generated by configure
63 DISTCLEANFILES = $(built_headers_configure)
65 include $(top_srcdir)/common/gst-glib-gen.mak
68 BUILT_GIRSOURCES = GstPbutils-@GST_MAJORMINOR@.gir
70 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 gir_cincludes=$(patsubst %,--c-include='gst/pbutils/%',$(libgstpbutils_@GST_MAJORMINOR@include_HEADERS))
75 gir_cincludes+=$(patsubst %,--c-include='gst/pbutils/%',$(nodist_libgstpbutils_@GST_MAJORMINOR@include_HEADERS))
77 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@ \
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-@GST_MAJORMINOR@` \
87 --library=libgstpbutils-@GST_MAJORMINOR@.la \
88 --library-path=`$(PKG_CONFIG) --variable=libdir gstreamer-@GST_MAJORMINOR@` \
89 --library=gstreamer-@GST_MAJORMINOR@ \
90 --include=Gst-@GST_MAJORMINOR@ \
91 --libtool="$(top_builddir)/libtool" \
92 --pkg gstreamer-@GST_MAJORMINOR@ \
93 --pkg gstreamer-video-@GST_MAJORMINOR@ \
94 --pkg-export gstreamer-pbutils-@GST_MAJORMINOR@ \
95 --add-init-section="gst_init(NULL,NULL);" \
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)
105 typelibsdir = $(libdir)/girepository-1.0/
107 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
109 %.typelib: %.gir $(INTROSPECTION_COMPILER)
110 $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
111 $(INTROSPECTION_COMPILER) \
112 --includedir=$(srcdir) \
113 --includedir=$(srcdir)/../video \
114 --includedir=$(builddir) \
115 --includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_MAJORMINOR@` \
116 $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
118 CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)