aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorIgor Gnatenko <i.gnatenko.brain@gmail.com>2018-07-18 15:24:56 +0200
committerIgor Gnatenko <i.gnatenko.brain@gmail.com>2018-07-18 15:27:25 +0200
commitec6769295de915ef2d4350b4ad51106d3b971874 (patch)
treeb3bdf1394ae22fcb04a2c63da9f22a20a48996a2 /meson.build
parent0f934ad96576a6ecf1b616a5a824cc253abb5b3d (diff)
downloadlibnitrokey-ec6769295de915ef2d4350b4ad51106d3b971874.tar.gz
libnitrokey-ec6769295de915ef2d4350b4ad51106d3b971874.tar.bz2
meson: install udev rules
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build8
1 files changed, 7 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 258445e..f3be6b3 100644
--- a/meson.build
+++ b/meson.build
@@ -5,7 +5,7 @@ project(
default_options : [
'cpp_std=c++14'
],
- meson_version : '>= 0.43.0',
+ meson_version : '>= 0.44.0',
)
cxx = meson.get_compiler('cpp')
host_system = host_machine.system()
@@ -113,6 +113,12 @@ pkg.generate(
install : true,
)
+dep_udev = dependency('udev')
+install_data(
+ 'data/41-nitrokey.rules',
+ install_dir : '@0@/rules.d'.format(dep_udev.get_pkgconfig_variable('udevdir')),
+)
+
if get_option('tests') or get_option('offline-tests')
dep_catch = dependency('catch', required : false)
if not dep_catch.found()