File: meson.build

package info (click to toggle)
libblkio 1.5.0-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,016 kB
  • sloc: ansic: 3,443; sh: 432; makefile: 35; python: 16
file content (30 lines) | stat: -rw-r--r-- 853 bytes parent folder | download | duplicates (2)
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