test/meson.build: reduce test_translate_song. dependencies

This commit is contained in:
Max Kellermann 2022-11-12 12:16:56 +01:00
parent c8ebaf3521
commit ab99a57997
3 changed files with 10 additions and 2 deletions

View File

@ -31,4 +31,3 @@ storage_glue_dep = declare_dependency(
storage_plugins_dep,
],
)

View File

@ -288,7 +288,8 @@ if enable_database
dependencies: [
log_dep,
tag_dep,
storage_glue_dep,
fs_dep,
storage_plugins_dep,
gtest_dep,
],
),

View File

@ -14,6 +14,7 @@
#include "ls.hxx"
#include "Log.hxx"
#include "db/DatabaseSong.hxx"
#include "storage/Registry.hxx"
#include "storage/StorageInterface.hxx"
#include "storage/plugins/LocalStorage.hxx"
#include "Mapper.hxx"
@ -36,6 +37,13 @@ uri_supported_scheme(const char *uri) noexcept
return strncmp(uri, "http://", 7) == 0;
}
const StoragePlugin *
GetStoragePluginByUri(const char *) noexcept
{
// dummy symbol
return nullptr;
}
static constexpr auto music_directory = PATH_LITERAL("/music");
static Storage *storage;