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 include_directories : eStoraged_headers, 21 implicit_include_directories: false, 22 dependencies: [libeStoraged_deps, libeStoragedErase_dep], 23) 24 25libeStoraged = declare_dependency( 26 dependencies: libeStoraged_deps, 27 include_directories: eStoraged_headers, 28 link_with: libeStoraged_lib, 29) 30 31executable( 32 'eStoraged', 33 'main.cpp', 34 implicit_include_directories: false, 35 dependencies: libeStoraged, 36 install: true, 37 install_dir: get_option('bindir') 38) 39 40build_tests = get_option('tests') 41if not build_tests.disabled() 42 subdir('test') 43endif 44 45