1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
project('libblkio', ['c', 'rust'],
meson_version: '>=0.61.0',
license : 'MIT OR Apache-2.0',
version : run_command(['./package-version.py'], check : true).stdout().strip(),
default_options : ['buildtype=release'],
)
find_program('cargo', required: true)
add_project_arguments(
'-D_GNU_SOURCE',
language : 'c',
)
if not (meson.is_subproject() and get_option('subproject-docs').disabled())
subdir('docs')
endif
subdir('include')
subdir('src') # requires: include
libblkio_dep = declare_dependency(include_directories: inc,
link_with: lib)
if not (meson.is_subproject() and get_option('subproject-examples').disabled())
subdir('examples') # requires: include, src
endif
if not (meson.is_subproject() and get_option('subproject-tests').disabled())
subdir('tests') # requires: include, src
endif
|