summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorThibault Saunier <thibault.saunier@osg.samsung.com>2017-08-21 15:20:47 -0300
committerThibault Saunier <thibault.saunier@osg.samsung.com>2017-08-29 22:20:46 -0300
commit7e8ee1230476cb388d94238805cdcb74bee8c507 (patch)
tree07f7b26836e4148fcecdfed24be7ace8cd5bf824 /samples
parentb37b5a2b92be585d87b7ec5dd0811a2e50a20eb5 (diff)
Add meson build definitions
Diffstat (limited to 'samples')
-rw-r--r--samples/meson.build35
1 files changed, 35 insertions, 0 deletions
diff --git a/samples/meson.build b/samples/meson.build
new file mode 100644
index 0000000..8cf2b5b
--- /dev/null
+++ b/samples/meson.build
@@ -0,0 +1,35 @@
+examples = [
+ ['playback', 'Playback.cs'],
+ ['video-overlay' , 'VideoOverlay.cs', has_gtk, gtk_sharp_dep],
+ ['basic-tutorial-1' , 'BasicTutorial1.cs',],
+ ['basic-tutorial-2' , 'BasicTutorial2.cs',],
+ ['basic-tutorial-3' , 'BasicTutorial3.cs',],
+ ['basic-tutorial-4' , 'BasicTutorial4.cs',],
+ ['basic-tutorial-5' , 'BasicTutorial5.cs', has_gtk, gtk_sharp_dep],
+ ['basic-tutorial-6' , 'BasicTutorial6.cs',],
+ ['basic-tutorial-7' , 'BasicTutorial7.cs',],
+ ['basic-tutorial-8' , 'BasicTutorial8.cs',],
+ ['basic-tutorial-9' , 'BasicTutorial9.cs',],
+ ['basic-tutorial-12' , 'BasicTutorial12.cs',],
+ ['basic-tutorial-13' , 'BasicTutorial13.cs',],
+ ['example-volume' , 'ExampleVolume.cs',],
+ ['playback-tutorial-1' , 'PlaybackTutorial1.cs',],
+ ['playback-tutorial-2' , 'PlaybackTutorial2.cs',],
+ ['playback-tutorial-3' , 'PlaybackTutorial3.cs',],
+ ['playback-tutorial-4' , 'PlaybackTutorial4.cs',],
+ ['playback-tutorial-5' , 'PlaybackTutorial5.cs',],
+ ['playback-tutorial-6' , 'PlaybackTutorial6.cs',],
+ ['playback-tutorial-7' , 'PlaybackTutorial7.cs',],
+]
+
+foreach example: examples
+ deps = [gst_sharp_dep]
+ if example.length() == 2 or example.get(2)
+ if example.length() > 2
+ deps += example.get(3)
+ endif
+
+ executable(example.get(0), example.get(1),
+ cs_args: ['-unsafe'], dependencies: deps)
+ endif
+endforeach