meson.build, SongUpdate: disable db-specific archive code if -Ddatabase=false

Fixes another build failure.
This commit is contained in:
Max Kellermann 2019-11-04 14:12:07 +01:00
parent 129d8e89b9
commit bea3b954a5
2 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -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
{