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