Merge branch 'upstream/1.16' into tizen_gst_1.16.2
[platform/upstream/gst-plugins-base.git] / gst-libs / gst / video / Makefile.am
1 # variables used for enum generation
2 ORC_SOURCE=video-orc
3 include $(top_srcdir)/common/orc.mak
4
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 video-anc.h \
8                         video-overlay-composition.h
9 glib_enum_define = GST_VIDEO
10 glib_gen_prefix = gst_video
11 glib_gen_basename = video
12 glib_gen_decl_banner=GST_VIDEO_API
13 glib_gen_decl_include=\#include <gst/video/video-prelude.h>
14
15 built_sources = video-enumtypes.c
16 built_headers = video-enumtypes.h
17 BUILT_SOURCES += $(built_sources) $(built_headers)
18
19 lib_LTLIBRARIES = libgstvideo-@GST_API_VERSION@.la
20
21 CLEANFILES = $(BUILT_SOURCES)
22
23 libgstvideo_@GST_API_VERSION@_la_SOURCES = \
24         cameracontrol.c         \
25         cameracontrolchannel.c  \
26         colorbalance.c          \
27         colorbalancechannel.c   \
28         navigation.c            \
29         video.c                 \
30         video-anc.c             \
31         video-event.c           \
32         video-format.c          \
33         video-chroma.c          \
34         video-color.c           \
35         video-converter.c       \
36         video-dither.c          \
37         video-info.c            \
38         video-frame.c           \
39         video-scaler.c          \
40         video-tile.c            \
41         gstvideoaggregator.c    \
42         gstvideosink.c          \
43         gstvideofilter.c        \
44         convertframe.c          \
45         gstvideoaffinetransformationmeta.c \
46         gstvideometa.c          \
47         gstvideopool.c          \
48         videodirection.c        \
49         videoorientation.c      \
50         videooverlay.c          \
51         gstvideodecoder.c       \
52         gstvideoencoder.c       \
53         gstvideoutils.c         \
54         gstvideoutilsprivate.c  \
55         video-resampler.c       \
56         video-blend.c           \
57         video-overlay-composition.c \
58         video-multiview.c       \
59         gstvideotimecode.c
60
61 nodist_libgstvideo_@GST_API_VERSION@_la_SOURCES = $(BUILT_SOURCES)
62
63 libgstvideo_@GST_API_VERSION@includedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/video
64 libgstvideo_@GST_API_VERSION@include_HEADERS = \
65         cameracontrol.h         \
66         cameracontrolchannel.h  \
67         colorbalance.h          \
68         colorbalancechannel.h   \
69         navigation.h            \
70         video.h                 \
71         video-prelude.h         \
72         video-anc.h             \
73         video-event.h           \
74         video-format.h          \
75         video-chroma.h          \
76         video-color.h           \
77         video-converter.h       \
78         video-dither.h          \
79         video-info.h            \
80         video-frame.h           \
81         video-scaler.h          \
82         video-tile.h            \
83         gstvideoaggregator.h    \
84         gstvideosink.h          \
85         gstvideofilter.h        \
86         gstvideometa.h          \
87         gstvideoaffinetransformationmeta.h \
88         gstvideopool.h          \
89         videodirection.h        \
90         videoorientation.h      \
91         videooverlay.h          \
92         gstvideodecoder.h       \
93         gstvideoencoder.h       \
94         gstvideoutils.h         \
95         video-resampler.h       \
96         video-blend.h           \
97         video-overlay-composition.h \
98         video-multiview.h       \
99         gstvideotimecode.h
100
101 nodist_libgstvideo_@GST_API_VERSION@include_HEADERS = $(built_headers)
102 noinst_HEADERS = gstvideoutilsprivate.h
103
104 libgstvideo_@GST_API_VERSION@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS) \
105                                         $(ORC_CFLAGS) -DBUILDING_GST_VIDEO
106 libgstvideo_@GST_API_VERSION@_la_LIBADD = $(GST_BASE_LIBS) $(GST_LIBS) $(ORC_LIBS) $(LIBM)
107 libgstvideo_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
108
109 include $(top_srcdir)/common/gst-glib-gen.mak
110
111 if HAVE_INTROSPECTION
112 BUILT_GIRSOURCES = GstVideo-@GST_API_VERSION@.gir
113
114 gir_headers=$(patsubst %,$(srcdir)/%, $(libgstvideo_@GST_API_VERSION@include_HEADERS))
115 gir_headers+=$(patsubst %,$(builddir)/%, $(built_headers))
116 gir_sources=$(patsubst %,$(srcdir)/%, $(libgstvideo_@GST_API_VERSION@_la_SOURCES))
117 gir_sources+=$(patsubst %,$(builddir)/%, $(built_sources))
118
119 GstVideo-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstvideo-@GST_API_VERSION@.la
120         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" GI_SCANNER_DISABLE_CACHE=yes\
121                 GST_PLUGIN_SYSTEM_PATH_1_0="" GST_PLUGIN_PATH_1_0="" GST_REGISTRY_DISABLE=yes \
122                 CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" CC="$(CC)" PKG_CONFIG="$(PKG_CONFIG)" DLLTOOL="$(DLLTOOL)" \
123                 $(INTROSPECTION_SCANNER) -v --namespace GstVideo \
124                 --nsversion=@GST_API_VERSION@ \
125                 --identifier-prefix=Gst \
126                 --symbol-prefix=gst \
127                 --warn-all \
128                 --c-include "gst/video/video.h" \
129                 -I$(top_srcdir)/gst-libs \
130                 -I$(top_builddir)/gst-libs \
131                 --add-include-path=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
132                 --add-include-path=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_API_VERSION@` \
133                 --library=libgstvideo-@GST_API_VERSION@.la \
134                 --include=Gst-@GST_API_VERSION@ \
135                 --include=GstBase-@GST_API_VERSION@ \
136                 --libtool="${LIBTOOL}" \
137                 --pkg gstreamer-@GST_API_VERSION@ \
138                 --pkg gstreamer-base-@GST_API_VERSION@ \
139                 --pkg-export gstreamer-video-@GST_API_VERSION@ \
140                 --add-init-section="$(INTROSPECTION_INIT)" \
141                 --output $@ \
142                 $(gir_headers) \
143                 $(gir_sources)
144
145 # INTROSPECTION_GIRDIR/INTROSPECTION_TYPELIBDIR aren't the right place to
146 # install anything - we need to install inside our prefix.
147 girdir = $(datadir)/gir-1.0
148 gir_DATA = $(BUILT_GIRSOURCES)
149
150 typelibsdir = $(libdir)/girepository-1.0/
151
152 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
153
154 %.typelib: %.gir $(INTROSPECTION_COMPILER)
155         $(AM_V_GEN)PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" \
156                 $(INTROSPECTION_COMPILER) \
157                 --includedir=$(srcdir) \
158                 --includedir=$(builddir) \
159                 --includedir=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
160                 --includedir=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-base-@GST_API_VERSION@` \
161                 $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
162
163 CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
164 endif