| 1 |
# |
| 2 |
# meson.build |
| 3 |
# |
| 4 |
# Author: Juan A. Suarez Romero <[email protected]> |
| 5 |
# |
| 6 |
# Copyright (C) 2016 Igalia S.L. All rights reserved. |
| 7 |
|
| 8 |
acoustid_resources = gnome.compile_resources('acoustidresources', |
| 9 |
'test_lua_acoustid.gresource.xml', |
| 10 |
c_name: '_grl_lua_acoustid') |
| 11 |
|
| 12 |
source_tests = [ |
| 13 |
'test_lua_theaudiodb' |
| 14 |
] |
| 15 |
|
| 16 |
if chromaprint_enabled |
| 17 |
source_tests += [ |
| 18 |
'test_lua_acoustid', |
| 19 |
] |
| 20 |
endif |
| 21 |
|
| 22 |
source_common = [ |
| 23 |
'test_lua_factory_utils.c', |
| 24 |
'test_lua_factory_utils.h', |
| 25 |
] |
| 26 |
|
| 27 |
resources = acoustid_resources |
| 28 |
|
| 29 |
foreach t: source_tests |
| 30 |
exe = executable(t, [t + '.c'] + source_common + resources, |
| 31 |
install: false, |
| 32 |
dependencies: must_deps, |
| 33 |
c_args: [ |
| 34 |
'-DCHROMAPRINT_PLUGIN_PATH="@0@/src/chromaprint/"'.format(meson.build_root()), |
| 35 |
'-DLUA_FACTORY_PLUGIN_PATH="@0@/src/lua-factory/"'.format(meson.build_root()), |
| 36 |
'-DLUA_FACTORY_PLUGIN_TEST_DATA_PATH="@0@/"'.format(meson.current_build_dir()), |
| 37 |
'-DLUA_FACTORY_SOURCES_DATA_PATH="@0@/data/"'.format(meson.current_source_dir()), |
| 38 |
'-DLUA_FACTORY_SOURCES_PATH="@0@/src/lua-factory/sources/"'.format(meson.source_root()), |
| 39 |
]) |
| 40 |
test(t, exe) |
| 41 |
endforeach |