blob: edba2083fe794576229fd0c69fdff6b69209ddac [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 Bishope3a12b62020-01-15 11:56:29 -050021cpp = meson.get_compiler('cpp')
Brad Bishop787e8282020-01-15 12:16:53 -050022boost = dependency('boost', required: false)
23if not boost.found()
24 subproject('boost', required: false)
25 boost = declare_dependency(
26 include_directories: 'subprojects/boost_1_71_0',
27 )
28endif
Brad Bishope3a12b62020-01-15 11:56:29 -050029i2c = cpp.find_library('i2c')
Brad Bishopb4459912019-11-05 19:39:11 -050030sdbusplus = dependency('sdbusplus')
31systemd = dependency('systemd')
32systemd_system_unit_dir = systemd.get_pkgconfig_variable(
33 'systemdsystemunitdir',
34 define_variable: ['prefix', get_option('prefix')])
35packagedir = join_paths(
36 get_option('prefix'),
37 get_option('datadir'),
38 meson.project_name(),
39)
40threads = dependency('threads')
41
42install_data('blacklist.json')
43
44configs = [
45 '1Ux16 Riser.json',
46 '2Ux8 Riser.json',
47 '8X25 HSBP.json',
48 'A2UL16RISER.json',
49 'A2UX8X4RISER.json',
50 'AHW1UM2RISER.json',
51 'AXX1P100HSSI_AIC.json',
52 'AXX2PRTHDHD.json',
53 'BNP Baseboard.json',
54 'Delta DPS-750XB PSU.json',
55 'F1U12X25 HSBP.json',
56 'F1U4X25 HSBP.json',
57 'F2U12X35 HSBP.json',
58 'F2U8X25 HSBP.json',
59 'FBTP.json',
60 'FBYV2.json',
61 'Flextronics S-1100ADU00-201 PSU.json',
62 'Intel Front Panel.json',
63 'NVME P4000.json',
64 'PCIE SSD Retimer.json',
65 'PSSF132202A.json',
66 'PSSF162205A.json',
67 'PSSF212201A.json',
68 'PSSF222201A.json',
69 'R1000 Chassis.json',
70 'R2000 Chassis.json',
71 'SAS Module.json',
72 'SOLUM_PSSF162202_PSU.json',
73 'STP Baseboard.json',
74 'STP P4000 Chassis.json',
75 'WFT Baseboard.json',
76]
77
78foreach c : configs
79 install_data(
80 join_paths('configurations', c),
81 install_dir: join_paths(
82 packagedir,
83 'configurations',
84 )
85 )
86endforeach
87
88schemas = [
89 'global.json',
90 'Pid.json',
91 'Pid.Zone.json',
92 'Stepwise.json',
93]
94
95foreach s : schemas
96 install_data(
97 join_paths('schemas', s),
98 install_dir: join_paths(
99 packagedir,
100 'configurations',
101 'schemas',
102 )
103 )
104endforeach
105
106subdir('service_files')
107subdir('src')
108subdir('test')