John Wedig | 2098dab | 2021-09-14 13:56:28 -0700 | [diff] [blame] | 1 | |
| 2 | libeStoraged_deps = [ |
| 3 | dependency('sdbusplus'), |
John Edward Broadbent | 4e13b0a | 2021-11-15 15:21:59 -0800 | [diff] [blame] | 4 | dependency('phosphor-logging', |
| 5 | fallback: ['phosphor-logging', |
| 6 | 'phosphor_logging_dep'], |
| 7 | ), |
John Wedig | 2098dab | 2021-09-14 13:56:28 -0700 | [diff] [blame] | 8 | eStoraged_dbus, |
John Wedig | b810c92 | 2021-11-17 16:38:03 -0800 | [diff] [blame^] | 9 | dependency('openssl'), |
| 10 | dependency('libcryptsetup'), |
| 11 | dependency('stdplus'), |
John Wedig | 2098dab | 2021-09-14 13:56:28 -0700 | [diff] [blame] | 12 | ] |
| 13 | |
| 14 | libeStoraged_lib = static_library( |
| 15 | 'eStoraged-lib', |
| 16 | 'estoraged.cpp', |
| 17 | include_directories : eStoraged_headers, |
| 18 | implicit_include_directories: false, |
| 19 | dependencies: libeStoraged_deps, |
| 20 | ) |
| 21 | |
| 22 | libeStoraged = declare_dependency( |
| 23 | dependencies: libeStoraged_deps, |
| 24 | include_directories: eStoraged_headers, |
| 25 | link_with: libeStoraged_lib) |
| 26 | |
| 27 | executable( |
| 28 | 'eStoraged', |
| 29 | 'main.cpp', |
| 30 | implicit_include_directories: false, |
| 31 | dependencies: libeStoraged, |
| 32 | install: true, |
| 33 | install_dir: get_option('bindir') |
| 34 | ) |
John Wedig | b810c92 | 2021-11-17 16:38:03 -0800 | [diff] [blame^] | 35 | |
| 36 | build_tests = get_option('tests') |
| 37 | if not build_tests.disabled() |
| 38 | subdir('test') |
| 39 | endif |
| 40 | |