summaryrefslogtreecommitdiff
path: root/spa/meson.build
blob: 47a071e23427659feb20b5d37b9f833969ad0318 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
#project('spa', 'c')

#cc = meson.get_compiler('c')
#dl_lib = cc.find_library('dl', required : false)
#pthread_lib = dependencies('threads')
#mathlib = cc.find_library('m', required : false)

spa_inc = include_directories('include')

subdir('include')

if get_option('spa-plugins')
  # common dependencies
  if get_option('alsa') or get_option('v4l2')
    libudev_dep = dependency('libudev')
  endif

  # plugin-specific dependencies
  if get_option('alsa')
    alsa_dep = dependency('alsa')
  endif
  if get_option('audioconvert')
    speexdsp_dep = dependency('speexdsp')
  endif
  if get_option('bluez5')
    bluez_dep = dependency('bluez', version : '>= 4.101')
    sbc_dep = dependency('sbc')
  endif
  if get_option('ffmpeg')
    avcodec_dep = dependency('libavcodec')
    avformat_dep = dependency('libavformat')
  endif

  subdir('plugins')
endif

subdir('tools')
subdir('tests')
subdir('examples')

pkgconfig.generate(filebase : 'libspa-@0@'.format(spaversion),
  name : 'libspa',
  description : 'Simple Plugin API',
  version : pipewire_version,
  extra_cflags : '-D_REENTRANT')