meson.build 693 Bytes
Newer Older
1 2 3 4 5
fs_sources = [
  'Domain.cxx',
  'Traits.cxx',
  'Config.cxx',
  'Charset.cxx',
6
  'Glob.cxx',
7 8 9
  'Path.cxx',
  'Path2.cxx',
  'AllocatedPath.cxx',
10
  'NarrowPath.cxx',
11 12 13 14
  'FileSystem.cxx',
  'List.cxx',
  'StandardDirectory.cxx',
  'CheckFile.cxx',
15
  'LookupFile.cxx',
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
  'DirectoryReader.cxx',
  'io/TextFile.cxx',
]

if is_windows
  shlwapi_dep = c_compiler.find_library('shlwapi')
else
  shlwapi_dep = dependency('', required: false)
endif

fs = static_library(
  'fs',
  fs_sources,
  include_directories: inc,
  dependencies: [
    zlib_dep,
32
    log_dep,
33 34 35 36 37 38
  ],
)

fs_dep = declare_dependency(
  link_with: fs,
  dependencies: [
39
    io_dep,
40 41 42 43 44
    system_dep,
    icu_dep,
    shlwapi_dep,
  ],
)