blob: f87ddef548493319a2745c6a8f0f5ec2a5bc439f [file] [log] [blame]
Willy Tu49ac48b2021-12-13 21:32:46 -08001project(
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
13cpp = meson.get_compiler('cpp')
14
15assert(cpp.has_header_symbol(
16 'ipmid/api.h',
17 'ipmid_get_sd_bus_connection')
18)
19assert(cpp.check_header('linux/i2c-dev.h'))
20assert(cpp.check_header('linux/i2c.h'))
21
22shared_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)