Skip to contentSkip to conversation

modtest: print libdrm version

PATCH New Andy Yan 1 participant 1 message Jul 8, 2024 Arm/Amlogic Meson SoC support

lore
Share & tools
lore

Andy Yan

author
#0 lore raw

PATCH 1/1 modtest: print libdrm version

From: Andy Yan <[email protected]>

---
 meson.build               | 1 +
 tests/modetest/modetest.c | 1 +
 2 files changed, 2 insertions(+)
meson.build +1 -0
index 8fd0a196..fab61e09 100644
@@ -45,6 +45,7 @@ dep_threads = dependency('threads')
 cc = meson.get_compiler('c')
 
 android = cc.compiles('''int func() { return __ANDROID__; }''')
+add_global_arguments('-DLIBDRM_VERSION="@0@"'.format(meson.project_version()), language : 'c')
 
 # Solaris / Illumos
 if host_machine.system() == 'sunos'
tests/modetest/modetest.c +1 -0
index d9e761e6..8cfc7e08 100644
@@ -2129,6 +2129,7 @@ static void parse_fill_patterns(char *arg)
 static void usage(char *name)
 {
 	fprintf(stderr, "usage: %s [-acDdefMoPpsCvrw]\n", name);
+	fprintf(stderr, "libdrm version: %s\n", LIBDRM_VERSION);
 
 	fprintf(stderr, "\n Query options:\n\n");
 	fprintf(stderr, "\t-c\tlist connectors\n");
Signature · 1 line
2.34.1