-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathmeson.build
66 lines (63 loc) · 1.69 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
cpp_args = boost_args + ['-DPACKAGE_DIR="' + packagedir + '/"']
cpp_args += ['-DSYSCONF_DIR="' + sysconfdir + '/"']
installdir = join_paths(get_option('libexecdir'), 'entity-manager')
executable(
'entity-manager',
'entity_manager.cpp',
'expression.cpp',
'perform_scan.cpp',
'perform_probe.cpp',
'overlay.cpp',
'topology.cpp',
'utils.cpp',
cpp_args: cpp_args + ['-DBOOST_ASIO_DISABLE_THREADS'],
dependencies: [
boost,
nlohmann_json_dep,
phosphor_logging_dep,
sdbusplus,
valijson,
],
install: true,
install_dir: installdir,
)
if get_option('fru-device')
cpp_args_fd = cpp_args
if get_option('fru-device-resizefru')
cpp_args_fd = cpp_args_fd + ['-DENABLE_FRU_AREA_RESIZE']
endif
detect_mode = get_option('fru-device-16bitdetectmode')
cpp_args_fd += ['-DFRU_DEVICE_16BITDETECTMODE="' + detect_mode + '"']
executable(
'fru-device',
'expression.cpp',
'fru_device.cpp',
'utils.cpp',
'fru_utils.cpp',
'fru_reader.cpp',
cpp_args: cpp_args_fd,
dependencies: [
boost,
i2c,
nlohmann_json_dep,
phosphor_logging_dep,
sdbusplus,
threads,
valijson,
],
install: true,
install_dir: installdir,
)
endif
if get_option('devicetree-vpd')
cpp_args_fd = cpp_args
executable(
'devicetree-vpd-parser',
'machine_context.cpp',
'devicetree_vpd_parser.cpp',
cpp_args: cpp_args_fd,
dependencies: [sdbusplus, phosphor_dbus_interfaces_dep],
install: true,
install_dir: installdir,
)
endif