Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/GStreamer/gst-plugins-good.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2018-08-17 16:26:54 +0300
committerNirbheek Chauhan <nirbheek@centricular.com>2018-08-17 17:35:25 +0300
commitb7e78d84b491fcaefbe936a33c07bebdc99c55eb (patch)
treec728a767db6763f9c623424b14f4e004e138d0d2 /sys/osxvideo
parent7ed17a3d10029f7fc3e4d09a94b29075ebd2b653 (diff)
meson: Add build files for osxaudio, osxvideo, waveform
osxaudio is for macOS and iOS osxvideo is for macOS waveform is for Windows
Diffstat (limited to 'sys/osxvideo')
-rw-r--r--sys/osxvideo/meson.build21
1 files changed, 21 insertions, 0 deletions
diff --git a/sys/osxvideo/meson.build b/sys/osxvideo/meson.build
new file mode 100644
index 000000000..5c5667e3d
--- /dev/null
+++ b/sys/osxvideo/meson.build
@@ -0,0 +1,21 @@
+osxvideo_sources = ['osxvideosink.m', 'cocoawindow.m']
+
+have_osxvideo = false
+if host_system != 'darwin'
+ subdir_done()
+endif
+
+osxvideo_opengl_dep = dependency('OpenGL', required : get_option('osxvideo'))
+osxvideo_cocoa_dep = dependency('Cocoa', required : get_option('osxvideo'))
+have_objc = add_languages('objc', required : get_option('osxvideo'))
+
+if have_objc and osxvideo_opengl_dep.found() and osxvideo_cocoa_dep.found()
+ gstosxvideo = library('gstosxvideo',
+ osxvideo_sources,
+ c_args : gst_plugins_good_args,
+ include_directories : [configinc],
+ dependencies : [gstvideo_dep, osxvideo_opengl_dep, osxvideo_cocoa_dep],
+ install : true,
+ install_dir : plugins_install_dir)
+ pkgconfig.generate(gstosxvideo, install_dir : plugins_pkgconfig_install_dir)
+endif