blob: dfcad3d28ea757fab044b8d16d9db20a6a8054bc [file] [log] [blame]
Patrick Williams2d4a0b12023-07-21 07:05:43 -05001project(
2 'phosphor-ipmi-ethstats',
3 'cpp',
4 version: '1.0',
5 default_options: [
6 'buildtype=debugoptimized',
7 'cpp_std=c++23',
8 'warning_level=3',
9 'werror=true',
10 ],
11 meson_version: '>=1.1.1',
12)
13
14conf_data = configuration_data()
15conf_data.set('ENABLE_GOOGLE', get_option('google_oen').allowed().to_int())
16configure_file(
17 output: 'config.h',
18 configuration: conf_data,
19)
20
21ipmid_dep = dependency('libipmid')
22
23ethstatscmd_common_lib = static_library(
24 'ethstatscmd_common',
25 'ethstats.cpp',
26 'handler.cpp',
27 dependencies: [
28 ipmid_dep,
29 ],
30)
31
32ethstatscmd_common_dep = declare_dependency(
33 link_with: ethstatscmd_common_lib,
34)
35
36ethstatscmd_lib = library(
37 'ethstatscmd',
38 'main.cpp',
39 dependencies: [
40 ethstatscmd_common_dep,
41 ipmid_dep,
42 ],
43 override_options: [ 'b_lundef=false' ],
44 version: meson.project_version(),
45 install: true,
46 install_dir: get_option('libdir') / 'ipmid-providers',
47)