forked from robinhood-suite/robinhood4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
79 lines (68 loc) · 1.92 KB
/
meson.build
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# This file is part of RobinHood 4
# Copyright (C) 2024 Commissariat a l'energie atomique et aux energies
# alternatives
#
# SPDX-License-Identifer: LGPL-3.0-or-later
project(
'robinhood4',
'c', 'cpp',
version: '1.1.0',
license: 'LGPL3.0-or-later',
default_options: [
'werror=true',
'c_std=c11',
],
)
# GNU extensions
cc = meson.get_compiler('c')
options = cc.get_supported_arguments([
'-Wno-gnu-alignof-expression', # gcc >= 10.1.0 (maybe less)
])
## Macro definitions
if not cc.compiles('#include <fts.h>', name: 'fts.h with _FILE_OFFSET_BITS=64')
add_project_arguments(['-U_FILE_OFFSET_BITS'], language: 'c')
endif
add_project_arguments([
'-D_DEFAULT_SOURCE',
'-D_GNU_SOURCE',
'-Wno-pedantic',
] + options,
language: 'c'
)
miniyaml = dependency('miniyaml', version: '>=0.0.0')
if get_option('lustre').enabled()
liblustre = dependency('lustre', disabler: true, required: false)
if not liblustre.found()
liblustre = cc.find_library('lustreapi', disabler:true,
required: false)
endif
else
liblustre = disabler()
endif
if get_option('mfu').enabled()
libmfu = cc.find_library('mfu', disabler: true, required: false)
libmpi = dependency('ompi', disabler: true, required: false)
else
libmfu = disabler()
libmpi = disabler()
endif
if get_option('hestia').enabled()
libhestia = dependency('hestia', disabler: true, required: false)
else
libhestia = disabler()
endif
check = dependency('check', disabler: true, version: '>=0.9.9', required: false)
if not check.found()
message('check is missing: skipping unit testing')
endif
subdir('librobinhood')
subdir('rbh-sync')
subdir('rbh-find')
subdir('rbh-fsevents')
subdir('rbh-report')
if get_option('lustre').enabled()
subdir('rbh-find-lustre')
endif
subdir('rbh-capabilities')
subdir('retention')
subdir('packaging')