acp_sources = [
  'acp.c',
  'compat.c',
  'alsa-mixer.c',
  'alsa-ucm.c',
  'alsa-util.c',
  'conf-parser.c',
]

acp_c_args = [
  '-DHAVE_ALSA_UCM',
  '-DHAVE_READLINK',
]

acp_lib = static_library(
  'acp',
  acp_sources,
  c_args : acp_c_args,
  include_directories : [configinc, includes_inc ],
  dependencies : [ spa_dep, alsa_dep, mathlib, ]
  )
acp_dep = declare_dependency(link_with: acp_lib)

executable('test-alsa-path-select',
  [ 'test-alsa-path-select.c' ],
  c_args : acp_c_args,
  include_directories : [configinc, includes_inc ],
  dependencies : [ spa_dep, alsa_dep, mathlib, ],
  link_with : [ acp_lib ],
  install : false,
)
