X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=meson.build;h=c2c88a6367268acc719e810621b1dec99439609b;hb=HEAD;hp=7f8adf59ffded4f25470547b27054d0b211cedf5;hpb=d196375b8b130e119285fb19984870edc6941a90;p=src%2Fdrm-lease-manager.git diff --git a/meson.build b/meson.build index 7f8adf5..1694a0a 100644 --- a/meson.build +++ b/meson.build @@ -28,13 +28,16 @@ add_project_arguments( language: 'c' ) -configure_file(output: 'config.h', - configuration: config) - -configuration_inc = include_directories('.') - drm_dep = dependency('libdrm', version: '>= 2.4.89') thread_dep = dependency('threads') +toml_dep = dependency('libtoml') + +systemd_dep = dependency('', required: false) +if get_option('enable-systemd') + systemd_dep = dependency('libsystemd', required: false) + + config.set('HAVE_SYSTEMD_DAEMON', '1') +endif enable_tests = get_option('enable-tests') @@ -55,6 +58,11 @@ if enable_tests endif endif +configure_file(output: 'config.h', + configuration: config) + +configuration_inc = include_directories('.') + subdir('common') subdir('libdlmclient') subdir('drm-lease-manager')