Willy Tu | 4055324 | 2022-11-14 09:27:39 -0800 | [diff] [blame^] | 1 | project( |
| 2 | 'foxconn-ipmi-oem', |
| 3 | 'cpp', |
| 4 | version: '0.1', |
| 5 | meson_version: '>=0.63.0', |
| 6 | default_options: [ |
| 7 | 'werror=true', |
| 8 | 'warning_level=3', |
| 9 | 'cpp_std=c++20', |
| 10 | ] |
| 11 | ) |
| 12 | |
| 13 | root_inc = include_directories('.', 'include') |
| 14 | |
| 15 | # Dependencies |
| 16 | fiioemcmds_dep = declare_dependency( |
| 17 | include_directories: root_inc, |
| 18 | dependencies: [ |
| 19 | dependency('libipmid'), |
| 20 | dependency('phosphor-logging'), |
| 21 | dependency('sdbusplus'), |
| 22 | dependency('libgpiod'), |
| 23 | ] |
| 24 | ) |
| 25 | |
| 26 | shared_module( |
| 27 | 'fiioemcmds', |
| 28 | 'src/systemcommands.cpp', |
| 29 | 'src/file_handling.cpp', |
| 30 | 'src/bioscommands.cpp', |
| 31 | implicit_include_directories: false, |
| 32 | dependencies: fiioemcmds_dep, |
| 33 | install: true, |
| 34 | install_dir: get_option('libdir') / 'ipmid-providers' |
| 35 | ) |
| 36 | |