summaryrefslogtreecommitdiff
path: root/src/fs/meson.build
blob: daf14a201c8fa92d07d4b577e652a5018eedcd48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
fs_sources = [
  'Domain.cxx',
  'Traits.cxx',
  'Config.cxx',
  'Charset.cxx',
  'Path.cxx',
  'Path2.cxx',
  'AllocatedPath.cxx',
  'FileSystem.cxx',
  'List.cxx',
  'StandardDirectory.cxx',
  'CheckFile.cxx',
  'LookupFile.cxx',
  'DirectoryReader.cxx',
  'io/PeekReader.cxx',
  'io/FileReader.cxx',
  'io/BufferedReader.cxx',
  'io/TextFile.cxx',
  'io/FileOutputStream.cxx',
  'io/BufferedOutputStream.cxx',
]

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

if zlib_dep.found()
  fs_sources += [
    'io/GunzipReader.cxx',
    'io/AutoGunzipReader.cxx',
    'io/GzipOutputStream.cxx',
  ]
endif

fs = static_library(
  'fs',
  fs_sources,
  include_directories: inc,
  dependencies: [
    zlib_dep,
    log_dep,
  ],
)

fs_dep = declare_dependency(
  link_with: fs,
  dependencies: [
    system_dep,
    icu_dep,
    shlwapi_dep,
  ],
)