system/FmtError: move to lib/fmt/
This commit is contained in:
parent
7d8c076e06
commit
66029c405f
|
@ -30,7 +30,7 @@
|
|||
#include "util/Domain.hxx"
|
||||
#include "util/RuntimeError.hxx"
|
||||
#include "util/StringAPI.hxx"
|
||||
#include "system/FmtError.hxx"
|
||||
#include "lib/fmt/SystemError.hxx"
|
||||
|
||||
#include <cassert>
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#include "../ArchiveVisitor.hxx"
|
||||
#include "input/InputStream.hxx"
|
||||
#include "fs/Path.hxx"
|
||||
#include "system/FmtError.hxx"
|
||||
#include "lib/fmt/SystemError.hxx"
|
||||
#include "util/RuntimeError.hxx"
|
||||
#include "util/UTF8.hxx"
|
||||
|
||||
|
|
|
@ -31,6 +31,7 @@ archive_plugins = static_library(
|
|||
archive_plugins_sources,
|
||||
include_directories: inc,
|
||||
dependencies: [
|
||||
fmt_dep,
|
||||
libbz2_dep,
|
||||
libiso9660_dep,
|
||||
libzzip_dep,
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
#include "fs/FileInfo.hxx"
|
||||
#include "config/Block.hxx"
|
||||
#include "fs/FileSystem.hxx"
|
||||
#include "system/FmtError.hxx"
|
||||
#include "lib/fmt/SystemError.hxx"
|
||||
#include "util/CharUtil.hxx"
|
||||
#include "util/Domain.hxx"
|
||||
#include "util/RecursiveMap.hxx"
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
*/
|
||||
|
||||
#include "InotifyEvent.hxx"
|
||||
#include "system/FmtError.hxx"
|
||||
#include "lib/fmt/SystemError.hxx"
|
||||
#include "io/UniqueFileDescriptor.hxx"
|
||||
|
||||
#include <array>
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
#include "DirectoryReader.hxx"
|
||||
#include "lib/fmt/PathFormatter.hxx"
|
||||
#include "system/FmtError.hxx"
|
||||
#include "lib/fmt/SystemError.hxx"
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
#include "Path.hxx"
|
||||
#include "lib/fmt/PathFormatter.hxx"
|
||||
#include "system/FmtError.hxx"
|
||||
#include "lib/fmt/SystemError.hxx"
|
||||
|
||||
#ifdef _WIN32
|
||||
#include "time/FileTime.hxx"
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
#include "AllocatedPath.hxx"
|
||||
#include "Limits.hxx"
|
||||
#include "lib/fmt/PathFormatter.hxx"
|
||||
#include "system/FmtError.hxx"
|
||||
#include "lib/fmt/SystemError.hxx"
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <handleapi.h> // for CloseHandle()
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
#include "../AsyncInputStream.hxx"
|
||||
#include "event/Call.hxx"
|
||||
#include "event/Loop.hxx"
|
||||
#include "system/FmtError.hxx"
|
||||
#include "lib/fmt/SystemError.hxx"
|
||||
#include "io/Open.hxx"
|
||||
#include "io/UniqueFileDescriptor.hxx"
|
||||
#include "io/uring/ReadOperation.hxx"
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
#include "FileOutputStream.hxx"
|
||||
#include "lib/fmt/PathFormatter.hxx"
|
||||
#include "system/FmtError.hxx"
|
||||
#include "lib/fmt/SystemError.hxx"
|
||||
#include "util/StringFormat.hxx"
|
||||
|
||||
#ifdef _WIN32
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
#include "FileReader.hxx"
|
||||
#include "lib/fmt/PathFormatter.hxx"
|
||||
#include "fs/FileInfo.hxx"
|
||||
#include "system/FmtError.hxx"
|
||||
#include "lib/fmt/SystemError.hxx"
|
||||
#include "io/Open.hxx"
|
||||
|
||||
#include <cassert>
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
#include "Open.hxx"
|
||||
#include "UniqueFileDescriptor.hxx"
|
||||
#include "system/FmtError.hxx"
|
||||
#include "lib/fmt/SystemError.hxx"
|
||||
|
||||
#include <fcntl.h>
|
||||
|
||||
|
|
|
@ -27,8 +27,8 @@
|
|||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "FmtError.hxx"
|
||||
#include "lib/fmt/ToBuffer.hxx"
|
||||
#include "SystemError.hxx"
|
||||
#include "ToBuffer.hxx"
|
||||
|
||||
#include <array>
|
||||
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "Error.hxx" // IWYU pragma: export
|
||||
#include "system/Error.hxx" // IWYU pragma: export
|
||||
|
||||
#include <fmt/core.h>
|
||||
#if FMT_VERSION >= 80000 && FMT_VERSION < 90000
|
|
@ -8,6 +8,14 @@ if compiler.get_id() == 'clang' and compiler.version().version_compare('<15')
|
|||
)
|
||||
endif
|
||||
|
||||
fmt_dep = declare_dependency(
|
||||
fmt = static_library(
|
||||
'fmt',
|
||||
'SystemError.cxx',
|
||||
include_directories: inc,
|
||||
dependencies: libfmt,
|
||||
)
|
||||
|
||||
fmt_dep = declare_dependency(
|
||||
link_with: fmt,
|
||||
dependencies: libfmt,
|
||||
)
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
#include "mixer/Mixer.hxx"
|
||||
#include "config/Block.hxx"
|
||||
#include "io/FileDescriptor.hxx"
|
||||
#include "system/FmtError.hxx"
|
||||
#include "lib/fmt/SystemError.hxx"
|
||||
#include "util/ASCII.hxx"
|
||||
#include "util/Domain.hxx"
|
||||
#include "util/RuntimeError.hxx"
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#include "fs/AllocatedPath.hxx"
|
||||
#include "fs/FileSystem.hxx"
|
||||
#include "fs/FileInfo.hxx"
|
||||
#include "system/FmtError.hxx"
|
||||
#include "lib/fmt/SystemError.hxx"
|
||||
#include "util/Domain.hxx"
|
||||
#include "util/RuntimeError.hxx"
|
||||
#include "Log.hxx"
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
#include "mixer/plugins/OssMixerPlugin.hxx"
|
||||
#include "pcm/Export.hxx"
|
||||
#include "io/UniqueFileDescriptor.hxx"
|
||||
#include "system/FmtError.hxx"
|
||||
#include "lib/fmt/SystemError.hxx"
|
||||
#include "util/Domain.hxx"
|
||||
#include "util/ByteOrder.hxx"
|
||||
#include "util/Manual.hxx"
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
#include "PipeOutputPlugin.hxx"
|
||||
#include "../OutputAPI.hxx"
|
||||
#include "system/FmtError.hxx"
|
||||
#include "lib/fmt/SystemError.hxx"
|
||||
|
||||
#include <string>
|
||||
#include <stdexcept>
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include "SolarisOutputPlugin.hxx"
|
||||
#include "../OutputAPI.hxx"
|
||||
#include "io/FileDescriptor.hxx"
|
||||
#include "system/FmtError.hxx"
|
||||
#include "lib/fmt/SystemError.hxx"
|
||||
|
||||
#include <cerrno>
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
system_sources = [
|
||||
'EventPipe.cxx',
|
||||
'FmtError.cxx',
|
||||
]
|
||||
|
||||
if host_machine.system() == 'linux'
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include "config.h"
|
||||
#include "Daemon.hxx"
|
||||
#include "lib/fmt/PathFormatter.hxx"
|
||||
#include "system/FmtError.hxx"
|
||||
#include "lib/fmt/SystemError.hxx"
|
||||
#include "fs/AllocatedPath.hxx"
|
||||
#include "util/RuntimeError.hxx"
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#include "lib/fmt/PathFormatter.hxx"
|
||||
#include "fs/FileSystem.hxx"
|
||||
#include "fs/AllocatedPath.hxx"
|
||||
#include "system/FmtError.hxx"
|
||||
#include "lib/fmt/SystemError.hxx"
|
||||
|
||||
#include <cassert>
|
||||
|
||||
|
|
Loading…
Reference in New Issue