meson.build, SongUpdate: disable db-specific archive code if -Ddatabase=false
Fixes another build failure.
This commit is contained in:
parent
129d8e89b9
commit
bea3b954a5
|
@ -385,8 +385,11 @@ endif
|
||||||
if archive_glue_dep.found()
|
if archive_glue_dep.found()
|
||||||
sources += [
|
sources += [
|
||||||
'src/TagArchive.cxx',
|
'src/TagArchive.cxx',
|
||||||
'src/db/update/Archive.cxx',
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if enable_database
|
||||||
|
sources += ['src/db/update/Archive.cxx']
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if is_windows
|
if is_windows
|
||||||
|
|
|
@ -98,8 +98,6 @@ Song::UpdateFile(Storage &storage) noexcept
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef ENABLE_ARCHIVE
|
#ifdef ENABLE_ARCHIVE
|
||||||
|
|
||||||
Song *
|
Song *
|
||||||
|
@ -145,6 +143,8 @@ Song::UpdateFileInArchive(ArchiveFile &archive) noexcept
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif /* ENABLE_DATABASE */
|
||||||
|
|
||||||
bool
|
bool
|
||||||
DetachedSong::LoadFile(Path path) noexcept
|
DetachedSong::LoadFile(Path path) noexcept
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue