You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
740 B
Meson

if is_windows
# avoid the unused libwinpthread-1.dll dependency on Windows; MPD
# doesn't use the pthread API on Windows, but this is what Meson
# unhelpfully detects for us
threads_dep = []
else
threads_dep = dependency('threads')
endif
conf.set('HAVE_PTHREAD_SETNAME_NP', compiler.has_function('pthread_setname_np', dependencies: threads_dep))
sacdiso = static_library(
'sacdiso',
'sacd_disc.cpp',
'sacd_dsdiff.cpp',
'sacd_media.cpp',
'sacd_metabase.cpp',
'scarletbook.cpp',
'log_printf.cpp',
'libdstdec/binding/dst_decoder.cpp',
'libdstdec/decoder/decoder.cpp',
include_directories: inc,
dependencies: [
gcrypt_dep,
threads_dep,
],
)
sacdiso_dep = declare_dependency(
link_with: sacdiso,
)