fs/{StandardDirectory,CheckFile}: move to fs/glue/

Distangle library dependencies.
This commit is contained in:
Max Kellermann
2023-03-06 19:36:34 +01:00
parent c937a299f7
commit b5d224ce22
16 changed files with 39 additions and 26 deletions

View File

@@ -5,10 +5,10 @@
#include "Log.hxx"
#include "lib/fmt/PathFormatter.hxx"
#include "config/Domain.hxx"
#include "FileInfo.hxx"
#include "Path.hxx"
#include "AllocatedPath.hxx"
#include "DirectoryReader.hxx"
#include "fs/FileInfo.hxx"
#include "fs/Path.hxx"
#include "fs/AllocatedPath.hxx"
#include "fs/DirectoryReader.hxx"
#include "system/Error.hxx"
void

View File

@@ -1,8 +1,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright The Music Player Daemon Project
#ifndef MPD_FS_CHECK_FILE_HXX
#define MPD_FS_CHECK_FILE_HXX
#pragma once
class Path;
@@ -12,5 +11,3 @@ class Path;
*/
void
CheckDirectoryReadable(Path path_fs);
#endif

View File

@@ -6,8 +6,9 @@
#endif
#include "StandardDirectory.hxx"
#include "FileSystem.hxx"
#include "XDG.hxx"
#include "fs/AllocatedPath.hxx"
#include "fs/FileSystem.hxx"
#include "fs/XDG.hxx"
#include "config.h"
#include "util/StringSplit.hxx"

View File

@@ -1,10 +1,9 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright The Music Player Daemon Project
#ifndef MPD_FS_STANDARD_DIRECTORY_HXX
#define MPD_FS_STANDARD_DIRECTORY_HXX
#pragma once
#include "AllocatedPath.hxx"
class AllocatedPath;
/**
* Obtains configuration directory for the current user.
@@ -83,5 +82,3 @@ AllocatedPath
GetHomeDir(const char *user_name) noexcept;
#endif
#endif

16
src/fs/glue/meson.build Normal file
View File

@@ -0,0 +1,16 @@
fs_glue = static_library(
'fs_glue',
'StandardDirectory.cxx',
'CheckFile.cxx',
include_directories: inc,
dependencies: [
fs_dep,
fmt_dep,
log_dep,
util_dep,
],
)
fs_glue_dep = declare_dependency(
link_with: fs_glue,
)

View File

@@ -10,8 +10,6 @@ fs_sources = [
'NarrowPath.cxx',
'FileSystem.cxx',
'List.cxx',
'StandardDirectory.cxx',
'CheckFile.cxx',
'LookupFile.cxx',
'DirectoryReader.cxx',
'io/TextFile.cxx',
@@ -29,7 +27,6 @@ fs = static_library(
include_directories: inc,
dependencies: [
zlib_dep,
log_dep,
],
)