2018-04-10 15:54:29 +02:00
|
|
|
audioconvert_sources = ['fmtconvert.c',
|
|
|
|
|
'channelmix.c',
|
|
|
|
|
'resample.c',
|
2018-04-13 20:00:30 +02:00
|
|
|
'splitter.c',
|
2018-07-31 12:23:35 +02:00
|
|
|
'merger.c',
|
2018-04-10 15:54:29 +02:00
|
|
|
'audioconvert.c',
|
|
|
|
|
'plugin.c']
|
2018-04-02 11:21:29 +02:00
|
|
|
|
|
|
|
|
audioconvertlib = shared_library('spa-audioconvert',
|
|
|
|
|
audioconvert_sources,
|
2018-08-14 12:33:53 +02:00
|
|
|
include_directories : [spa_inc],
|
2019-01-23 15:59:54 +01:00
|
|
|
dependencies : [ speexdsp_dep, mathlib ],
|
2018-04-02 11:21:29 +02:00
|
|
|
install : true,
|
|
|
|
|
install_dir : '@0@/spa/audioconvert/'.format(get_option('libdir')))
|
2019-01-23 15:59:54 +01:00
|
|
|
|
|
|
|
|
test_apps = [
|
|
|
|
|
'test-fmt-ops',
|
2019-03-26 12:58:26 +01:00
|
|
|
'test-resample',
|
2019-01-23 15:59:54 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
foreach a : test_apps
|
|
|
|
|
test(a,
|
|
|
|
|
executable(a, a + '.c',
|
|
|
|
|
dependencies : [dl_lib, pthread_lib, mathlib ],
|
|
|
|
|
include_directories : [spa_inc ],
|
|
|
|
|
c_args : [ '-D_GNU_SOURCE' ],
|
|
|
|
|
install : false),
|
|
|
|
|
env : [
|
|
|
|
|
'SPA_PLUGIN_DIR=@0@/spa/plugins/'.format(meson.build_root()),
|
|
|
|
|
])
|
|
|
|
|
endforeach
|
|
|
|
|
|
|
|
|
|
benchmark_apps = [
|
|
|
|
|
'benchmark-fmt-ops',
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
foreach a : benchmark_apps
|
|
|
|
|
benchmark(a,
|
|
|
|
|
executable(a, a + '.c',
|
|
|
|
|
dependencies : [dl_lib, pthread_lib, mathlib ],
|
|
|
|
|
include_directories : [spa_inc ],
|
|
|
|
|
c_args : [ '-D_GNU_SOURCE' ],
|
|
|
|
|
install : false),
|
|
|
|
|
env : [
|
|
|
|
|
'SPA_PLUGIN_DIR=@0@/spa/plugins/'.format(meson.build_root()),
|
|
|
|
|
])
|
|
|
|
|
endforeach
|