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