3 # Version based on Semantic Versioning 2.0.0 (https://semver.org/)
10 config = configuration_data()
12 pkg = import('pkgconfig')
15 '-Wstrict-prototypes',
16 '-Wmissing-prototypes',
19 #Setup and create runtime path
20 runtime_path = join_paths(get_option('localstatedir'), get_option('runtime_subdir'))
21 config.set_quoted('DLM_DEFAULT_RUNTIME_PATH', runtime_path)
23 meson.add_install_script('sh', '-c', 'install -d $DESTDIR/$1', '_', runtime_path)
25 cc = meson.get_compiler('c')
26 add_project_arguments(
27 cc.get_supported_arguments(compiler_flags),
31 configure_file(output: 'config.h',
32 configuration: config)
34 configuration_inc = include_directories('.')
36 drm_dep = dependency('libdrm', version: '>= 2.4.89')
37 thread_dep = dependency('threads')
39 enable_tests = get_option('enable-tests')
42 check_dep = dependency('check')
44 # Default to the system provided version of fff.h.
45 # otherwise fetch it ourselves.
46 if cc.check_header('fff.h')
47 fff_dep = declare_dependency()
49 if meson.version().version_compare('>=0.55')
50 fff_proj = subproject('fff')
51 fff_dep = fff_proj.get_variable('fff_dep')
53 error('Update meson version to >=0.55 to enable unit testing')
59 subdir('libdlmclient')
60 subdir('drm-lease-manager')