blob: 2c9b70b3b9fc4df807295e954596803a61275d3d [file] [log] [blame]
Brad Bishopb4459912019-11-05 19:39:11 -05001project(
2 'entity-manager',
3 'cpp',
4 default_options: [
5 'warning_level=3',
6 'werror=true',
7 'cpp_std=c++17'
8 ],
9 license: 'Apache-2.0',
10 version: '0.1',
11)
12
13boost_args = [
14 '-DBOOST_SYSTEM_NO_DEPRECATED',
15 '-DBOOST_ERROR_CODE_HEADER_ONLY',
16 '-DBOOST_NO_RTTI',
17 '-DBOOST_NO_TYPEID',
18 '-DBOOST_ALL_NO_LIB',
19]
20build_tests = get_option('tests')
Brad Bishop787e8282020-01-15 12:16:53 -050021boost = dependency('boost', required: false)
22if not boost.found()
23 subproject('boost', required: false)
24 boost = declare_dependency(
25 include_directories: 'subprojects/boost_1_71_0',
26 )
27endif
Brad Bishopb4459912019-11-05 19:39:11 -050028i2c = meson.get_compiler('cpp').find_library('i2c')
29sdbusplus = dependency('sdbusplus')
30systemd = dependency('systemd')
31systemd_system_unit_dir = systemd.get_pkgconfig_variable(
32 'systemdsystemunitdir',
33 define_variable: ['prefix', get_option('prefix')])
34packagedir = join_paths(
35 get_option('prefix'),
36 get_option('datadir'),
37 meson.project_name(),
38)
39threads = dependency('threads')
40
41install_data('blacklist.json')
42
43configs = [
44 '1Ux16 Riser.json',
45 '2Ux8 Riser.json',
46 '8X25 HSBP.json',
47 'A2UL16RISER.json',
48 'A2UX8X4RISER.json',
49 'AHW1UM2RISER.json',
50 'AXX1P100HSSI_AIC.json',
51 'AXX2PRTHDHD.json',
52 'BNP Baseboard.json',
53 'Delta DPS-750XB PSU.json',
54 'F1U12X25 HSBP.json',
55 'F1U4X25 HSBP.json',
56 'F2U12X35 HSBP.json',
57 'F2U8X25 HSBP.json',
58 'FBTP.json',
59 'FBYV2.json',
60 'Flextronics S-1100ADU00-201 PSU.json',
61 'Intel Front Panel.json',
62 'NVME P4000.json',
63 'PCIE SSD Retimer.json',
64 'PSSF132202A.json',
65 'PSSF162205A.json',
66 'PSSF212201A.json',
67 'PSSF222201A.json',
68 'R1000 Chassis.json',
69 'R2000 Chassis.json',
70 'SAS Module.json',
71 'SOLUM_PSSF162202_PSU.json',
72 'STP Baseboard.json',
73 'STP P4000 Chassis.json',
74 'WFT Baseboard.json',
75]
76
77foreach c : configs
78 install_data(
79 join_paths('configurations', c),
80 install_dir: join_paths(
81 packagedir,
82 'configurations',
83 )
84 )
85endforeach
86
87schemas = [
88 'global.json',
89 'Pid.json',
90 'Pid.Zone.json',
91 'Stepwise.json',
92]
93
94foreach s : schemas
95 install_data(
96 join_paths('schemas', s),
97 install_dir: join_paths(
98 packagedir,
99 'configurations',
100 'schemas',
101 )
102 )
103endforeach
104
105subdir('service_files')
106subdir('src')
107subdir('test')