| # async gpio monitor needs boost library |
| boost_args = ['-DBOOST_ASIO_DISABLE_THREADS', |
| '-DBOOST_ERROR_CODE_HEADER_ONLY', |
| '-DBOOST_SYSTEM_NO_DEPRECATED'] |
| # dependency to link gpiod support |
| libgpiod = dependency('libgpiod', version : '>=1.4.1') |
| # install systemd unit file |
| input: 'attn_handler.service', |
| output: 'attn_handler.service', |
| dependency('systemd').get_pkgconfig_variable( |
| # see if phosphor-logging is available, if not use test case logging code |
| if (true == phosphor_logging) |
| logging_src = 'attn_logging.cpp' |
| logging_src = '../test/end2end/logging.cpp' |
| # for custom/raw PEL creation |
| 'pel/private_header.cpp', |
| attn_lib = static_library( |
| include_directories : incdir, |
| dependencies : attn_deps, |
| cpp_args : [boost_args, test_arg], |