@@ -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'
@@ -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");