aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build11
1 files changed, 9 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index b14fe0c..600be6d 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()
@@ -53,6 +53,7 @@ version_cc_in = configure_file(
version_cc = vcs_tag(
input : version_cc_in,
output : 'version.cc',
+ fallback : 'v@0@'.format(meson.project_version()),
)
libnitrokey = library(
'nitrokey',
@@ -112,8 +113,14 @@ 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)
+ dep_catch = dependency('catch2', version : '>=2.3.0', required : false)
if not dep_catch.found()
dep_catch = declare_dependency(
include_directories : include_directories('unittest/Catch/single_include')