1 # variables used for enum generation
3 include $(top_srcdir)/common/orc.mak
5 glib_enum_headers = video.h video-format.h video-color.h video-info.h video-dither.h \
6 colorbalance.h navigation.h video-chroma.h video-tile.h video-converter.h \
7 video-resampler.h video-frame.h video-scaler.h
8 glib_enum_define = GST_VIDEO
9 glib_gen_prefix = gst_video
10 glib_gen_basename = video
11 glib_gen_decl_banner=GST_EXPORT
13 built_sources = video-enumtypes.c
14 built_headers = video-enumtypes.h
15 BUILT_SOURCES += $(built_sources) $(built_headers)
17 lib_LTLIBRARIES = libgstvideo-@GST_API_VERSION@.la
19 CLEANFILES = $(BUILT_SOURCES)
21 libgstvideo_@GST_API_VERSION@_la_SOURCES = \
23 colorbalancechannel.c \
39 gstvideoaffinetransformationmeta.c \
48 gstvideoutilsprivate.c \
51 video-overlay-composition.c \
55 nodist_libgstvideo_@GST_API_VERSION@_la_SOURCES = $(BUILT_SOURCES)
57 libgstvideo_@GST_API_VERSION@includedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/video
58 libgstvideo_@GST_API_VERSION@include_HEADERS = \
60 colorbalancechannel.h \
76 gstvideoaffinetransformationmeta.h \
86 video-overlay-composition.h \
90 nodist_libgstvideo_@GST_API_VERSION@include_HEADERS = $(built_headers)
91 noinst_HEADERS = gstvideoutilsprivate.h
93 libgstvideo_@GST_API_VERSION@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS) \
95 libgstvideo_@GST_API_VERSION@_la_LIBADD = $(GST_BASE_LIBS) $(GST_LIBS) $(ORC_LIBS) $(LIBM)
96 libgstvideo_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
98 include $(top_srcdir)/common/gst-glib-gen.mak
100 if HAVE_INTROSPECTION
101 BUILT_GIRSOURCES = GstVideo-@GST_API_VERSION@.gir
103 gir_headers=$(patsubst %,$(srcdir)/%, $(libgstvideo_@GST_API_VERSION@include_HEADERS))
104 gir_headers+=$(patsubst %,$(builddir)/%, $(built_headers))
105 gir_sources=$(patsubst %,$(srcdir)/%, $(libgstvideo_@GST_API_VERSION@_la_SOURCES))
106 gir_sources+=$(patsubst %,$(builddir)/%, $(built_sources))
108 GstVideo-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstvideo-@GST_API_VERSION@.la
109 $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" GI_SCANNER_DISABLE_CACHE=yes\
110 GST_PLUGIN_SYSTEM_PATH_1_0="" GST_PLUGIN_PATH_1_0="" GST_REGISTRY_DISABLE=yes \
111 CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" CC="$(CC)" PKG_CONFIG="$(PKG_CONFIG)" DLLTOOL="$(DLLTOOL)" \
112 $(INTROSPECTION_SCANNER) -v --namespace GstVideo \
113 --nsversion=@GST_API_VERSION@ \
114 --identifier-prefix=Gst \
115 --symbol-prefix=gst \
117 --c-include "gst/video/video.h" \
118 -I$(top_srcdir)/gst-libs \
119 -I$(top_builddir)/gst-libs \
120 --add-include-path=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
121 --add-include-path=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_API_VERSION@` \
122 --library=libgstvideo-@GST_API_VERSION@.la \
123 --include=Gst-@GST_API_VERSION@ \
124 --include=GstBase-@GST_API_VERSION@ \
125 --libtool="$(top_builddir)/libtool" \
126 --pkg gstreamer-@GST_API_VERSION@ \
127 --pkg gstreamer-base-@GST_API_VERSION@ \
128 --pkg-export gstreamer-video-@GST_API_VERSION@ \
129 --add-init-section="$(INTROSPECTION_INIT)" \
134 # INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
135 # install anything - we need to install inside our prefix.
136 girdir = $(datadir)/gir-1.0
137 gir_DATA = $(BUILT_GIRSOURCES)
139 typelibsdir = $(libdir)/girepository-1.0/
141 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
143 %.typelib: %.gir $(INTROSPECTION_COMPILER)
144 $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
145 $(INTROSPECTION_COMPILER) \
146 --includedir=$(srcdir) \
147 --includedir=$(builddir) \
148 --includedir=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
149 --includedir=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_API_VERSION@` \
150 $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
152 CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)