summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>2021-11-10 12:54:58 +0200
committerTomi Valkeinen <tomi.valkeinen@ideasonboard.com>2021-11-10 12:55:25 +0200
commit2236a8ccacdfed5ff5f6873ed6618eccf570193d (patch)
tree0098e7f112e2ec3c9d0d409e733d99e6da56917c
parent2b1a8f48f3a414e565cefb809f3e6a7c6aa5f8a7 (diff)
fix use of libdrm_omap
We never defined HAS_LIBDRM_OMAP, so the support was not fully compiled in. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
-rw-r--r--meson.build4
1 files changed, 4 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 3de7b6a..ce73f4c 100644
--- a/meson.build
+++ b/meson.build
@@ -36,6 +36,10 @@ libfmt_dep = dependency('fmt')
libdrmomap_dep = dependency('libdrm_omap', required : get_option('omap'))
+if libdrmomap_dep.found()
+ add_global_arguments('-DHAS_LIBDRM_OMAP', language : 'cpp')
+endif
+
subdir('kms++')
if get_option('v4l2').enabled()