Willy Tu | c710b97 | 2021-08-11 16:33:43 -0700 | [diff] [blame] | 1 | ipmid_pre = [ |
Konstantin Aladyshev | e11895f | 2024-04-04 12:35:33 +0300 | [diff] [blame] | 2 | boost, |
Willy Tu | c710b97 | 2021-08-11 16:33:43 -0700 | [diff] [blame] | 3 | phosphor_dbus_interfaces_dep, |
Patrick Williams | bbc6ad4 | 2022-06-16 12:26:23 -0500 | [diff] [blame] | 4 | phosphor_logging_dep, |
Willy Tu | c710b97 | 2021-08-11 16:33:43 -0700 | [diff] [blame] | 5 | sdbusplus_dep, |
| 6 | systemd, |
| 7 | ] |
| 8 | |
Vernon Mauery | 9cf0838 | 2023-04-28 14:00:11 -0700 | [diff] [blame] | 9 | entity_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 Mauery | f84c831 | 2023-05-22 13:54:03 -0700 | [diff] [blame] | 16 | entity_map_json_dep = declare_dependency( |
| 17 | link_whole: entity_map_json_lib) |
Vernon Mauery | 9cf0838 | 2023-04-28 14:00:11 -0700 | [diff] [blame] | 18 | |
Willy Tu | c710b97 | 2021-08-11 16:33:43 -0700 | [diff] [blame] | 19 | libipmid = library( |
| 20 | 'ipmid', |
| 21 | 'sdbus-asio.cpp', |
| 22 | 'signals.cpp', |
| 23 | 'systemintf-sdbus.cpp', |
| 24 | 'utils.cpp', |
Vernon Mauery | 9cf0838 | 2023-04-28 14:00:11 -0700 | [diff] [blame] | 25 | dependencies: [ipmid_pre, entity_map_json_dep], |
Willy Tu | c710b97 | 2021-08-11 16:33:43 -0700 | [diff] [blame] | 26 | 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 | |
| 32 | ipmid_dep = declare_dependency( |
| 33 | dependencies: ipmid_pre, |
| 34 | include_directories: root_inc, |
| 35 | link_with: libipmid) |
| 36 | |
| 37 | import('pkgconfig').generate( |
| 38 | libipmid, |
| 39 | name: 'libipmid', |
| 40 | version: meson.project_version(), |
| 41 | description: 'ipmid') |