aboutsummaryrefslogtreecommitdiff
path: root/meson.build
blob: d7e3a995ef89659047a8e25e6a50ef222eb8ef73 (plain)
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
31
32
project ('tinyalsa', 'c',
  version : run_command(find_program('scripts/version.py')).stdout().strip(),
  meson_version : '>= 0.48.0')

tinyalsa_includes = include_directories('.', 'include')

tinyalsa = library('tinyalsa',
  'src/mixer.c', 'src/pcm.c',
  include_directories: tinyalsa_includes,
  version: meson.project_version(),
  install: true)

# For use as a Meson subproject
tinyalsa_dep = declare_dependency(link_with: tinyalsa,
  include_directories: include_directories('include'))

if not get_option('docs').disabled()
  # subdir('docs') # FIXME
endif

if not get_option('examples').disabled()
  subdir('examples')
endif

subdir('include/tinyalsa')

if not get_option('utils').disabled()
  subdir('utils')
endif

pkg = import('pkgconfig')
pkg.generate(tinyalsa, description: 'TinyALSA Library')