From bea3b954a53418d820b8e59b7258fc9f637b18ca Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 4 Nov 2019 14:12:07 +0100 Subject: [PATCH] meson.build, SongUpdate: disable db-specific archive code if -Ddatabase=false Fixes another build failure. --- meson.build | 5 ++++- src/SongUpdate.cxx | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/meson.build b/meson.build index 8c04c0574..e18e7d6bf 100644 --- a/meson.build +++ b/meson.build @@ -385,8 +385,11 @@ endif if archive_glue_dep.found() sources += [ 'src/TagArchive.cxx', - 'src/db/update/Archive.cxx', ] + + if enable_database + sources += ['src/db/update/Archive.cxx'] + endif endif if is_windows diff --git a/src/SongUpdate.cxx b/src/SongUpdate.cxx index 0d22ff1d8..0743216a7 100644 --- a/src/SongUpdate.cxx +++ b/src/SongUpdate.cxx @@ -98,8 +98,6 @@ Song::UpdateFile(Storage &storage) noexcept return true; } -#endif - #ifdef ENABLE_ARCHIVE Song * @@ -145,6 +143,8 @@ Song::UpdateFileInArchive(ArchiveFile &archive) noexcept #endif +#endif /* ENABLE_DATABASE */ + bool DetachedSong::LoadFile(Path path) noexcept {