12098dabeSJohn Wedig 2*e6ffe704SJohn Edward Broadbentsubdir('erase') 3*e6ffe704SJohn Edward Broadbent 42098dabeSJohn WediglibeStoraged_deps = [ 52098dabeSJohn Wedig dependency('sdbusplus'), 64e13b0a1SJohn Edward Broadbent dependency('phosphor-logging', 74e13b0a1SJohn Edward Broadbent fallback: ['phosphor-logging', 84e13b0a1SJohn Edward Broadbent 'phosphor_logging_dep'], 94e13b0a1SJohn Edward Broadbent ), 102098dabeSJohn Wedig eStoraged_dbus, 11b810c926SJohn Wedig dependency('openssl'), 12b810c926SJohn Wedig dependency('libcryptsetup'), 13b810c926SJohn Wedig dependency('stdplus'), 142098dabeSJohn Wedig] 152098dabeSJohn Wedig 162098dabeSJohn WediglibeStoraged_lib = static_library( 172098dabeSJohn Wedig 'eStoraged-lib', 182098dabeSJohn Wedig 'estoraged.cpp', 192098dabeSJohn Wedig include_directories : eStoraged_headers, 202098dabeSJohn Wedig implicit_include_directories: false, 21*e6ffe704SJohn Edward Broadbent dependencies: [libeStoraged_deps, libeStoragedErase_dep], 222098dabeSJohn Wedig) 232098dabeSJohn Wedig 242098dabeSJohn WediglibeStoraged = declare_dependency( 252098dabeSJohn Wedig dependencies: libeStoraged_deps, 262098dabeSJohn Wedig include_directories: eStoraged_headers, 27*e6ffe704SJohn Edward Broadbent link_with: libeStoraged_lib, 28*e6ffe704SJohn Edward Broadbent) 292098dabeSJohn Wedig 302098dabeSJohn Wedigexecutable( 312098dabeSJohn Wedig 'eStoraged', 322098dabeSJohn Wedig 'main.cpp', 332098dabeSJohn Wedig implicit_include_directories: false, 342098dabeSJohn Wedig dependencies: libeStoraged, 352098dabeSJohn Wedig install: true, 362098dabeSJohn Wedig install_dir: get_option('bindir') 372098dabeSJohn Wedig) 38b810c926SJohn Wedig 39b810c926SJohn Wedigbuild_tests = get_option('tests') 40b810c926SJohn Wedigif not build_tests.disabled() 41b810c926SJohn Wedig subdir('test') 42b810c926SJohn Wedigendif 43b810c926SJohn Wedig 44