summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2017-01-18 02:43:44 +1100
committerMatthew Waters <matthew@centricular.com>2017-01-18 15:23:42 +1100
commited5f63c9efcb9746d001819d413b8b20770c3f62 (patch)
tree564bdc9d6b36750dcf4a86a6e07f72be95e64768 /examples
parentb4f3e4094bc285f2f7a8d3cea121119e2c5e90cb (diff)
build: add meson build definition
Currently only been tested on the RPi within gst-build.
Diffstat (limited to 'examples')
-rw-r--r--examples/egl/meson.build19
-rw-r--r--examples/meson.build3
2 files changed, 22 insertions, 0 deletions
diff --git a/examples/egl/meson.build b/examples/egl/meson.build
new file mode 100644
index 0000000..1d1a5cf
--- /dev/null
+++ b/examples/egl/meson.build
@@ -0,0 +1,19 @@
+if omx_target == 'rpi'
+ egl_sources = ['testegl.c']
+
+ egl_dep = dependency('egl', required : false)
+ if not egl_dep.found()
+ egl_dep = cc.find_library ('EGL')
+ endif
+
+ gles2_dep = dependency('glesv2', required : false)
+ if not gles2_dep.found()
+ gles2_dep = cc.find_library ('GLESv2')
+ endif
+
+ executable ('testegl',
+ sources : egl_sources,
+ c_args : gst_omx_args,
+ include_directories : [configinc],
+ dependencies : [libm, gst_dep, gstvideo_dep, gstgl_dep, egl_dep, gles2_dep])
+endif
diff --git a/examples/meson.build b/examples/meson.build
new file mode 100644
index 0000000..5173880
--- /dev/null
+++ b/examples/meson.build
@@ -0,0 +1,3 @@
+if gstgl_dep.found()
+ subdir('egl')
+endif