blob: 97c5050acb15bd578fdc15a07ed0b552043a28b2 [file] [log] [blame]
project('libhinawa', 'c',
version: '2.2.0',
license: 'LGPL-2.1+',
meson_version: '>= 0.46.0',
)
# Detect support level in Linux sound subsystem.
cc = meson.get_compiler('c')
with_backport = false
with_snd_dice = false
with_snd_efw = false
with_snd_dg00x = false
with_snd_motu = false
with_snd_tscm = false
if cc.has_header_symbol('sound/firewire.h',
'SNDRV_FIREWIRE_EVENT_DICE_NOTIFICATION')
with_snd_dice = true
endif
if cc.has_header_symbol('sound/firewire.h',
'SNDRV_FIREWIRE_EVENT_EFW_RESPONSE')
with_snd_efw = true
endif
if cc.has_header_symbol('sound/firewire.h',
'SNDRV_FIREWIRE_EVENT_DIGI00X_MESSAGE')
with_snd_dg00x = true
endif
if cc.has_header_symbol('sound/firewire.h',
'SNDRV_FIREWIRE_EVENT_MOTU_NOTIFICATION')
with_snd_motu = true
endif
if cc.has_header_symbol('sound/firewire.h',
'SNDRV_FIREWIRE_EVENT_TASCAM_CONTROL')
with_snd_tscm = true
endif
conf = configuration_data()
conf.set10('WITH_BACKPORT', with_backport)
conf.set10('HAVE_SND_DICE', with_snd_dice)
conf.set10('HAVE_SND_EFW', with_snd_efw)
conf.set10('HAVE_SND_DG00X', with_snd_dg00x)
conf.set10('HAVE_SND_MOTU', with_snd_motu)
conf.set10('HAVE_SND_TSCM', with_snd_tscm)
conf.set('VERSION', meson.project_version())
# For g-i and documentation.
gnome = import('gnome')
inc = include_directories('src')
subdir('src')
subdir('doc')
subdir('tests')