Brad Bishop | b445991 | 2019-11-05 19:39:11 -0500 | [diff] [blame] | 1 | project( |
| 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 | |
| 13 | boost_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 | ] |
| 20 | build_tests = get_option('tests') |
Brad Bishop | 787e828 | 2020-01-15 12:16:53 -0500 | [diff] [blame^] | 21 | boost = dependency('boost', required: false) |
| 22 | if not boost.found() |
| 23 | subproject('boost', required: false) |
| 24 | boost = declare_dependency( |
| 25 | include_directories: 'subprojects/boost_1_71_0', |
| 26 | ) |
| 27 | endif |
Brad Bishop | b445991 | 2019-11-05 19:39:11 -0500 | [diff] [blame] | 28 | i2c = meson.get_compiler('cpp').find_library('i2c') |
| 29 | sdbusplus = dependency('sdbusplus') |
| 30 | systemd = dependency('systemd') |
| 31 | systemd_system_unit_dir = systemd.get_pkgconfig_variable( |
| 32 | 'systemdsystemunitdir', |
| 33 | define_variable: ['prefix', get_option('prefix')]) |
| 34 | packagedir = join_paths( |
| 35 | get_option('prefix'), |
| 36 | get_option('datadir'), |
| 37 | meson.project_name(), |
| 38 | ) |
| 39 | threads = dependency('threads') |
| 40 | |
| 41 | install_data('blacklist.json') |
| 42 | |
| 43 | configs = [ |
| 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 | |
| 77 | foreach c : configs |
| 78 | install_data( |
| 79 | join_paths('configurations', c), |
| 80 | install_dir: join_paths( |
| 81 | packagedir, |
| 82 | 'configurations', |
| 83 | ) |
| 84 | ) |
| 85 | endforeach |
| 86 | |
| 87 | schemas = [ |
| 88 | 'global.json', |
| 89 | 'Pid.json', |
| 90 | 'Pid.Zone.json', |
| 91 | 'Stepwise.json', |
| 92 | ] |
| 93 | |
| 94 | foreach s : schemas |
| 95 | install_data( |
| 96 | join_paths('schemas', s), |
| 97 | install_dir: join_paths( |
| 98 | packagedir, |
| 99 | 'configurations', |
| 100 | 'schemas', |
| 101 | ) |
| 102 | ) |
| 103 | endforeach |
| 104 | |
| 105 | subdir('service_files') |
| 106 | subdir('src') |
| 107 | subdir('test') |