blob: e573ed4947a9ee0b5aa5343e2f0cf299b03e85d0 [file] [log] [blame]
Willy Tuc710b972021-08-11 16:33:43 -07001ipmid_pre = [
2 boost_coroutine,
3 phosphor_dbus_interfaces_dep,
Patrick Williamsbbc6ad42022-06-16 12:26:23 -05004 phosphor_logging_dep,
Willy Tuc710b972021-08-11 16:33:43 -07005 sdbusplus_dep,
6 systemd,
7]
8
Vernon Mauery9cf08382023-04-28 14:00:11 -07009entity_map_json_lib = static_library(
10 'entity_map_json',
11 'entity_map_json.cpp',
12 include_directories: root_inc,
13 dependencies: [nlohmann_json_dep, sdbusplus_dep],
14 implicit_include_directories: false)
15
Vernon Maueryf84c8312023-05-22 13:54:03 -070016entity_map_json_dep = declare_dependency(
17 link_whole: entity_map_json_lib)
Vernon Mauery9cf08382023-04-28 14:00:11 -070018
Willy Tuc710b972021-08-11 16:33:43 -070019libipmid = library(
20 'ipmid',
21 'sdbus-asio.cpp',
22 'signals.cpp',
23 'systemintf-sdbus.cpp',
24 'utils.cpp',
Vernon Mauery9cf08382023-04-28 14:00:11 -070025 dependencies: [ipmid_pre, entity_map_json_dep],
Willy Tuc710b972021-08-11 16:33:43 -070026 version: meson.project_version(),
27 include_directories: root_inc,
28 install: true,
29 install_dir: get_option('libdir'),
30 override_options: ['b_lundef=false'])
31
32ipmid_dep = declare_dependency(
33 dependencies: ipmid_pre,
34 include_directories: root_inc,
35 link_with: libipmid)
36
37import('pkgconfig').generate(
38 libipmid,
39 name: 'libipmid',
40 version: meson.project_version(),
41 description: 'ipmid')