blob: 3f64ef2b5c8f208b4689944a56f8bb8f0fd8a977 [file] [log] [blame]
Lei YU3c341df2020-09-27 13:24:53 +08001configure_file(output: 'config.h',
2 configuration: cdata,
3)
4
Lei YU6505e9d2020-09-21 17:34:32 +08005src_inc = include_directories('.')
6
Lei YUf3690842020-09-22 14:30:14 +08007so_version = '0.1.0'
8
George Liub4396f22024-06-04 19:57:19 +08009sources = [
John Wangef3194d2024-06-04 15:00:27 +080010 'asset_info.cpp',
John Wang0917ac42024-06-04 16:52:07 +080011 'firmware_version.cpp',
George Liu45d31232024-12-06 16:37:18 +080012 'power.cpp',
John Wangad6a9b62024-06-04 15:20:22 +080013 'utils.cpp',
George Liub4396f22024-06-04 19:57:19 +080014]
15
16deps = [
17 phosphor_dbus_interfaces_dep,
18 phosphor_logging_dep,
19 ipmid_dep,
20 sdbusplus_dep,
21]
22
Lei YU6505e9d2020-09-21 17:34:32 +080023shared_library(
George Liua3a9d2a2024-04-03 09:30:45 +080024 'iei-ipmi-oem',
George Liub4396f22024-06-04 19:57:19 +080025 sources,
26 dependencies: deps,
Lei YUf3690842020-09-22 14:30:14 +080027 version: so_version,
Lei YU6505e9d2020-09-21 17:34:32 +080028 install: true,
29 install_dir: get_option('libdir') / 'ipmid-providers'
George Liub4396f22024-06-04 19:57:19 +080030)