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 {