John Wedig | 2098dab | 2021-09-14 13:56:28 -0700 | [diff] [blame^] | 1 | |
| 2 | libeStoraged_deps = [ |
| 3 | dependency('sdbusplus'), |
| 4 | eStoraged_dbus, |
| 5 | ] |
| 6 | |
| 7 | libeStoraged_lib = static_library( |
| 8 | 'eStoraged-lib', |
| 9 | 'estoraged.cpp', |
| 10 | include_directories : eStoraged_headers, |
| 11 | implicit_include_directories: false, |
| 12 | dependencies: libeStoraged_deps, |
| 13 | ) |
| 14 | |
| 15 | libeStoraged = declare_dependency( |
| 16 | dependencies: libeStoraged_deps, |
| 17 | include_directories: eStoraged_headers, |
| 18 | link_with: libeStoraged_lib) |
| 19 | |
| 20 | executable( |
| 21 | 'eStoraged', |
| 22 | 'main.cpp', |
| 23 | implicit_include_directories: false, |
| 24 | dependencies: libeStoraged, |
| 25 | install: true, |
| 26 | install_dir: get_option('bindir') |
| 27 | ) |