| meson.get_compiler('cpp').has_header_symbol( |
| 'boost/endian/conversion.hpp', |
| 'boost::endian::native_to_little_inplace') |
| |
| conf_data = configuration_data() |
| conf_data.set_quoted('HOTHID_CONFIG', get_option('skmhss-hothid-config')) |
| conf_hpp = configure_file( |
| output: 'config.hpp', |
| configuration: conf_data) |
| |
| hothskmhss_pre = declare_dependency( |
| include_directories: include_directories('.'), |
| dependencies: [ |
| hothblob_dep, |
| hothcommand_dep, |
| dependency('hothd-dbus'), |
| ipmi_blob_dep, |
| phosphor_logging_dep, |
| sdbusplus_dep, |
| stdplus_dep, |
| ]) |
| |
| hothskmhss_lib = static_library( |
| 'hothskmhss', |
| 'hoth_skmhss.cpp', |
| 'hoth_util_impl.cpp', |
| conf_hpp, |
| implicit_include_directories: false, |
| dependencies: hothskmhss_pre) |
| |
| hothskmhss_dep = declare_dependency( |
| link_with: hothskmhss_lib, |
| dependencies: hothskmhss_pre) |
| |
| shared_module( |
| 'hothskmhss', |
| 'main_skmhss.cpp', |
| implicit_include_directories: false, |
| dependencies: hothskmhss_dep, |
| install: true, |
| install_dir: get_option('libdir') / 'blob-ipmid') |
| |
| if not get_option('tests').disabled() |
| subdir('test') |
| endif |