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