Makefile.am 3.28 KB
Newer Older
1
# variables used for enum/marshal generation
2
3
glib_enum_headers = video.h
glib_enum_define = GST_VIDEO
4
glib_gen_prefix = gst_video
5
glib_gen_basename = video
6
7
8
9
10

built_sources = video-enumtypes.c
built_headers = video-enumtypes.h
BUILT_SOURCES = $(built_sources) $(built_headers)

11
lib_LTLIBRARIES = libgstvideo-@GST_MAJORMINOR@.la
12

13
14
CLEANFILES = $(BUILT_SOURCES)

15
libgstvideo_@GST_MAJORMINOR@_la_SOURCES = \
16
	video.c gstvideosink.c gstvideofilter.c convertframe.c
17
nodist_libgstvideo_@GST_MAJORMINOR@_la_SOURCES = $(BUILT_SOURCES)
18

19
libgstvideo_@GST_MAJORMINOR@includedir = $(includedir)/gstreamer-@GST_MAJORMINOR@/gst/video
20
libgstvideo_@GST_MAJORMINOR@include_HEADERS = \
21
	video.h gstvideosink.h gstvideofilter.h
22
nodist_libgstvideo_@GST_MAJORMINOR@include_HEADERS = $(built_headers)
23

Tim-Philipp Müller's avatar
Tim-Philipp Müller committed
24
libgstvideo_@GST_MAJORMINOR@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS)
25
libgstvideo_@GST_MAJORMINOR@_la_LIBADD = $(GST_BASE_LIBS) $(GST_LIBS)
26
libgstvideo_@GST_MAJORMINOR@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
27

28
include $(top_srcdir)/common/gst-glib-gen.mak
29
30
31
32
33

if HAVE_INTROSPECTION
BUILT_GIRSOURCES = GstVideo-@GST_MAJORMINOR@.gir

gir_headers=$(patsubst %,$(srcdir)/%, $(libgstvideo_@GST_MAJORMINOR@include_HEADERS))
34
gir_headers+=$(patsubst %,$(builddir)/%, $(nodist_libgstvideo_@GST_MAJORMINOR@include_HEADERS))
35
gir_sources=$(patsubst %,$(srcdir)/%, $(libgstvideo_@GST_MAJORMINOR@_la_SOURCES))
36
gir_sources+=$(patsubst %,$(builddir)/%, $(nodist_libgstvideo_@GST_MAJORMINOR@_la_SOURCES))
37
38
gir_cincludes=$(patsubst %,--c-include='gst/video/%',$(libgstvideo_@GST_MAJORMINOR@include_HEADERS))
gir_cincludes+=$(patsubst %,--c-include='gst/video/%',$(nodist_libgstvideo_@GST_MAJORMINOR@include_HEADERS))
39
40

GstVideo-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstvideo-@GST_MAJORMINOR@.la
41
	$(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
42
		$(INTROSPECTION_SCANNER) -v --namespace GstVideo \
43
		--nsversion=@GST_MAJORMINOR@ \
44
		--strip-prefix=Gst \
45
46
		$(gir_cincludes) \
		-I$(top_srcdir)/gst-libs \
47
		-I$(top_builddir)/gst-libs \
48
49
50
51
52
		--add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_MAJORMINOR@` \
		--add-include-path=`$(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_MAJORMINOR@` \
		--library=libgstvideo-@GST_MAJORMINOR@.la \
		--include=Gst-@GST_MAJORMINOR@ \
		--include=GstBase-@GST_MAJORMINOR@ \
53
		--libtool="$(top_builddir)/libtool" \
54
55
56
		--pkg gstreamer-@GST_MAJORMINOR@ \
		--pkg gstreamer-base-@GST_MAJORMINOR@ \
		--pkg-export gstreamer-video-@GST_MAJORMINOR@ \
57
		--add-init-section="gst_init(NULL,NULL);" \
58
59
60
61
62
63
64
65
66
67
68
69
70
71
		--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)
72
73
	$(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
		$(INTROSPECTION_COMPILER) \
74
75
		--includedir=$(srcdir) \
		--includedir=$(builddir) \
76
77
		--includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-@GST_MAJORMINOR@` \
		--includedir=`$(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_MAJORMINOR@` \
78
		$(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
79
80
81

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