From 2a0435d5e42bf362acb9e04f26ca3db9ccb29b57 Mon Sep 17 00:00:00 2001 From: Derek Dai Date: Mon, 3 Apr 2017 22:16:29 +0800 Subject: [PATCH] handle meson optoins properly --- meson.build | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index c21167e..74adfaa 100644 --- a/meson.build +++ b/meson.build @@ -28,11 +28,18 @@ if get_option('build-enable-debug') add_project_arguments('-DBUILD_ENABLE_DEBUG', language: 'c') endif +if get_option('rely-udev') + add_project_arguments('-DRELY_UDEV', language: 'c') +endif + glib2 = dependency('glib-2.0') udev = dependency('libudev') libsystemd = dependency('libsystemd') subdir('src') subdir('res') -subdir('test') + +if get_option('build-tests') + subdir('test') +endif