1 2subdir('erase') 3 4libeStoraged_deps = [ 5 dependency('sdbusplus'), 6 dependency('phosphor-logging', 7 fallback: ['phosphor-logging', 8 'phosphor_logging_dep'], 9 ), 10 eStoraged_dbus, 11 dependency('openssl'), 12 dependency('libcryptsetup'), 13 dependency('stdplus'), 14] 15 16libeStoraged_lib = static_library( 17 'eStoraged-lib', 18 'estoraged.cpp', 19 include_directories : eStoraged_headers, 20 implicit_include_directories: false, 21 dependencies: [libeStoraged_deps, libeStoragedErase_dep], 22) 23 24libeStoraged = declare_dependency( 25 dependencies: libeStoraged_deps, 26 include_directories: eStoraged_headers, 27 link_with: libeStoraged_lib, 28) 29 30executable( 31 'eStoraged', 32 'main.cpp', 33 implicit_include_directories: false, 34 dependencies: libeStoraged, 35 install: true, 36 install_dir: get_option('bindir') 37) 38 39build_tests = get_option('tests') 40if not build_tests.disabled() 41 subdir('test') 42endif 43 44