meson: Maintain macOS ABI through dylib versioning
[platform/upstream/gstreamer.git] / gst-libs / gst / opencv / meson.build
1 opencv_sources = [
2   'gstopencvutils.cpp',
3   'gstopencvvideofilter.cpp',
4 ]
5
6 opencv_headers = [
7   'opencv-prelude.h',
8   'gstopencvutils.h',
9   'gstopencvvideofilter.h',
10 ]
11
12 opencv_dep = dependency('opencv', version : '>= 3.0.0', required : get_option('opencv'))
13 if opencv_dep.found()
14   gstopencv = library('gstopencv-' + api_version,
15     opencv_sources,
16     c_args : gst_plugins_bad_args,
17     include_directories : [configinc, libsinc],
18     version : libversion,
19     soversion : soversion,
20   darwin_versions : osxversion,
21     install : true,
22     dependencies : [gstbase_dep, gstvideo_dep, opencv_dep],
23   )
24
25   gstopencv_dep = declare_dependency(link_with: gstopencv,
26     include_directories : [libsinc],
27     dependencies : [gstvideo_dep, opencv_dep])
28
29   install_headers(opencv_headers, subdir : 'gstreamer-1.0/gst/opencv')
30 endif