1c710b975SWilly Tuipmid_pre = [
2*e11895fdSKonstantin Aladyshev  boost,
3c710b975SWilly Tu  phosphor_dbus_interfaces_dep,
4bbc6ad48SPatrick Williams  phosphor_logging_dep,
5c710b975SWilly Tu  sdbusplus_dep,
6c710b975SWilly Tu  systemd,
7c710b975SWilly Tu]
8c710b975SWilly Tu
99cf0838aSVernon Maueryentity_map_json_lib = static_library(
109cf0838aSVernon Mauery  'entity_map_json',
119cf0838aSVernon Mauery  'entity_map_json.cpp',
129cf0838aSVernon Mauery  include_directories: root_inc,
139cf0838aSVernon Mauery  dependencies: [nlohmann_json_dep, sdbusplus_dep],
149cf0838aSVernon Mauery  implicit_include_directories: false)
159cf0838aSVernon Mauery
16f84c8314SVernon Maueryentity_map_json_dep = declare_dependency(
17f84c8314SVernon Mauery  link_whole: entity_map_json_lib)
189cf0838aSVernon Mauery
19c710b975SWilly Tulibipmid = library(
20c710b975SWilly Tu  'ipmid',
21c710b975SWilly Tu  'sdbus-asio.cpp',
22c710b975SWilly Tu  'signals.cpp',
23c710b975SWilly Tu  'systemintf-sdbus.cpp',
24c710b975SWilly Tu  'utils.cpp',
259cf0838aSVernon Mauery  dependencies: [ipmid_pre, entity_map_json_dep],
26c710b975SWilly Tu  version: meson.project_version(),
27c710b975SWilly Tu  include_directories: root_inc,
28c710b975SWilly Tu  install: true,
29c710b975SWilly Tu  install_dir: get_option('libdir'),
30c710b975SWilly Tu  override_options: ['b_lundef=false'])
31c710b975SWilly Tu
32c710b975SWilly Tuipmid_dep = declare_dependency(
33c710b975SWilly Tu  dependencies: ipmid_pre,
34c710b975SWilly Tu  include_directories: root_inc,
35c710b975SWilly Tu  link_with: libipmid)
36c710b975SWilly Tu
37c710b975SWilly Tuimport('pkgconfig').generate(
38c710b975SWilly Tu  libipmid,
39c710b975SWilly Tu  name: 'libipmid',
40c710b975SWilly Tu  version: meson.project_version(),
41c710b975SWilly Tu  description: 'ipmid')
42