video: GST_EXPORT -> GST_VIDEO_API
[platform/upstream/gstreamer.git] / gst-libs / gst / video / meson.build
1 video_sources = [
2   'colorbalance.c',
3   'colorbalancechannel.c',
4   'convertframe.c',
5   'gstvideoaffinetransformationmeta.c',
6   'gstvideodecoder.c',
7   'gstvideoencoder.c',
8   'gstvideofilter.c',
9   'gstvideometa.c',
10   'gstvideopool.c',
11   'gstvideosink.c',
12   'gstvideotimecode.c',
13   'gstvideoutils.c',
14   'gstvideoutilsprivate.c',
15   'navigation.c',
16   'video.c',
17   'video-blend.c',
18   'video-chroma.c',
19   'video-color.c',
20   'video-converter.c',
21   'video-dither.c',
22   'video-event.c',
23   'video-format.c',
24   'video-frame.c',
25   'video-info.c',
26   'video-multiview.c',
27   'video-resampler.c',
28   'video-scaler.c',
29   'video-tile.c',
30   'video-overlay-composition.c',
31   'videodirection.c',
32   'videoorientation.c',
33   'videooverlay.c',
34 ]
35
36 video_headers = [
37   'colorbalance.h',
38   'colorbalancechannel.h',
39   'gstvideoaffinetransformationmeta.h',
40   'gstvideodecoder.h',
41   'gstvideoencoder.h',
42   'gstvideofilter.h',
43   'gstvideometa.h',
44   'gstvideopool.h',
45   'gstvideosink.h',
46   'gstvideotimecode.h',
47   'gstvideoutils.h',
48   'navigation.h',
49   'video.h',
50   'video-event.h',
51   'video-format.h',
52   'video-chroma.h',
53   'video-color.h',
54   'video-converter.h',
55   'video-dither.h',
56   'video-info.h',
57   'video-frame.h',
58   'video-prelude.h',
59   'video-scaler.h',
60   'video-tile.h',
61   'videodirection.h',
62   'videoorientation.h',
63   'videooverlay.h',
64   'video-resampler.h',
65   'video-blend.h',
66   'video-overlay-composition.h',
67   'video-multiview.h',
68 ]
69 install_headers(video_headers, subdir : 'gstreamer-1.0/gst/video/')
70
71 video_mkenum_headers = [
72   'video.h',
73   'video-format.h',
74   'video-frame.h',
75   'video-chroma.h',
76   'video-color.h',
77   'video-converter.h',
78   'video-dither.h',
79   'video-info.h',
80   'video-resampler.h',
81   'video-scaler.h',
82   'video-tile.h',
83   'colorbalance.h',
84   'navigation.h',
85 ]
86
87 mkenums = find_program('video_mkenum.py')
88 gstvideo_h = custom_target('gstvideoenum_h',
89   output : 'video-enumtypes.h',
90   input : video_mkenum_headers,
91   install : true,
92   install_dir : 'include/gstreamer-1.0/gst/video/',
93   command : [mkenums, glib_mkenums, '@OUTPUT@', '@INPUT@'])
94
95 gstvideo_c = custom_target('gstvideoenum_c',
96   output : 'video-enumtypes.c',
97   input : video_mkenum_headers,
98   depends : [gstvideo_h],
99   command : [mkenums, glib_mkenums, '@OUTPUT@', '@INPUT@'])
100 video_gen_sources = [gstvideo_h]
101
102 orcsrc = 'video-orc'
103 gstvideo_deps = [gst_base_dep, libm]
104 if have_orcc
105   gstvideo_deps += [orc_dep]
106   orc_h = custom_target(orcsrc + '.h',
107     input : orcsrc + '.orc',
108     output : orcsrc + '.h',
109     command : orcc_args + ['--header', '-o', '@OUTPUT@', '@INPUT@'])
110   orc_c = custom_target(orcsrc + '.c',
111     input : orcsrc + '.orc',
112     output : orcsrc + '.c',
113     command : orcc_args + ['--implementation', '-o', '@OUTPUT@', '@INPUT@'])
114 else
115   orc_h = configure_file(input : orcsrc + '-dist.h',
116     output : orcsrc + '.h',
117     configuration : configuration_data())
118   orc_c = configure_file(input : orcsrc + '-dist.c',
119     output : orcsrc + '.c',
120     configuration : configuration_data())
121 endif
122
123 gstvideo = library('gstvideo-@0@'.format(api_version),
124   video_sources, gstvideo_h, gstvideo_c, orc_c, orc_h,
125   c_args : gst_plugins_base_args,
126   include_directories: [configinc, libsinc],
127   version : libversion,
128   soversion : soversion,
129   install : true,
130   dependencies : gstvideo_deps,
131 )
132
133 if build_gir
134   gst_gir_extra_args = gir_init_section + [ '--c-include=gst/video/video.h' ]
135   video_gen_sources += [gnome.generate_gir(gstvideo,
136     sources : video_sources + video_headers + [gstvideo_c] + [gstvideo_h],
137     namespace : 'GstVideo',
138     nsversion : api_version,
139     identifier_prefix : 'Gst',
140     symbol_prefix : 'gst',
141     export_packages : 'gstreamer-video-1.0',
142     includes : ['Gst-1.0', 'GstBase-1.0'],
143     install : true,
144     extra_args : gst_gir_extra_args,
145     dependencies : gstvideo_deps
146   )]
147 endif
148
149 video_dep = declare_dependency(link_with : gstvideo,
150   include_directories : [libsinc],
151   dependencies : gstvideo_deps,
152   sources : video_gen_sources)