Ben Tyner | ef32015 | 2020-01-09 10:31:23 -0600 | [diff] [blame^] | 1 | # needed to find external libraries not registered with package manager |
| 2 | cmplr = meson.get_compiler('cpp') |
| 3 | |
| 4 | # dependency to link dbus support |
| 5 | sdbusplus = dependency('sdbusplus', version : '>=1.0') |
| 6 | |
| 7 | # dependency to link libpdbg support |
| 8 | libpdbg = cmplr.find_library('pdbg') |
| 9 | |
| 10 | # libpdbg requires linking with "whole-archive" option |
| 11 | whole_archive = declare_dependency(link_args : '-Wl,--whole-archive') |
| 12 | no_whole_archive = declare_dependency(link_args : '-Wl,--no-whole-archive') |
| 13 | |
| 14 | executable('attn_handler', |
| 15 | 'attn_main.cpp', 'attn_handler.cpp', |
| 16 | dependencies : [whole_archive, libpdbg, |
| 17 | no_whole_archive, sdbusplus], |
| 18 | install : true) |