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