Willy Tu | 49ac48b | 2021-12-13 21:32:46 -0800 | [diff] [blame] | 1 | project( |
| 2 | 'google-ipmi-i2c', |
| 3 | 'cpp', |
| 4 | version: '0.1', |
| 5 | meson_version: '>=0.57.0', |
| 6 | default_options: [ |
| 7 | 'cpp_std=c++20', |
| 8 | 'warning_level=3', |
| 9 | 'werror=true', |
| 10 | ] |
| 11 | ) |
| 12 | |
| 13 | cpp = meson.get_compiler('cpp') |
| 14 | |
| 15 | assert(cpp.has_header_symbol( |
| 16 | 'ipmid/api.h', |
| 17 | 'ipmid_get_sd_bus_connection') |
| 18 | ) |
| 19 | assert(cpp.check_header('linux/i2c-dev.h')) |
| 20 | assert(cpp.check_header('linux/i2c.h')) |
| 21 | |
| 22 | shared_module( |
| 23 | 'i2ccmds', |
| 24 | 'i2c.cpp', |
| 25 | implicit_include_directories: false, |
| 26 | include_directories: include_directories('.'), |
| 27 | dependencies: [ |
| 28 | dependency('libipmid'), |
| 29 | ], |
| 30 | install: true, |
| 31 | install_dir: get_option('libdir') / 'ipmid-providers' |
| 32 | ) |