meson.build 477 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
libsndio_dep = c_compiler.find_library('sndio', required: get_option('sndio'))
if libsndio_dep.found()
  if c_compiler.has_header_symbol('sndio.h', 'ROAR_VERSION')
    if get_option('sndio').enabled()
      error('Found libroarsndio, which is known to be broken.')
    else
      warning('Found libroarsndio, which is known to be broken; ignoring it.')
      libsndio_dep = dependency('', required: false)
    endif
  endif
endif
conf.set('ENABLE_SNDIO', libsndio_dep.found())