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