aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2018-07-18 16:17:40 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2018-07-18 16:17:40 +0200
commit6984151c61a85e10e93946f506b2f65b9dd9ec1b (patch)
treeb3bdf1394ae22fcb04a2c63da9f22a20a48996a2 /meson.build
parent42c934681970381a15aa1714822e65492bd51cc3 (diff)
parentec6769295de915ef2d4350b4ad51106d3b971874 (diff)
downloadlibnitrokey-6984151c61a85e10e93946f506b2f65b9dd9ec1b.tar.gz
libnitrokey-6984151c61a85e10e93946f506b2f65b9dd9ec1b.tar.bz2
Merge branch 'pr_130'
Meson: copy udev, fallback for git version. Fixes #130
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build9
1 files changed, 8 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index b14fe0c..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()
@@ -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,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()