io/meson.build: move sources to libio_fs.a

Only that one has a dependency on libfs.a (for class AllocatedPath
etc.).
This commit is contained in:
Max Kellermann
2023-03-07 12:25:30 +01:00
parent d45994268f
commit dbfd0a833d
6 changed files with 27 additions and 8 deletions

View File

@@ -3,9 +3,7 @@ io = static_library(
'FileDescriptor.cxx',
'Open.cxx',
'PeekReader.cxx',
'FileReader.cxx',
'BufferedReader.cxx',
'FileOutputStream.cxx',
'BufferedOutputStream.cxx',
include_directories: inc,
dependencies: [
@@ -16,6 +14,26 @@ io = static_library(
io_dep = declare_dependency(
link_with: io,
dependencies: [
fmt_dep,
],
)
io_fs = static_library(
'io_fs',
'FileReader.cxx',
'FileOutputStream.cxx',
include_directories: inc,
dependencies: [
fmt_dep,
io_dep,
fs_dep,
],
)
io_fs_dep = declare_dependency(
link_with: io_fs,
dependencies: [
fmt_dep,
io_dep,
fs_dep,
],
)