10c2808f0SPatrick Williamsphosphor_dbus_interfaces_dep = dependency('phosphor-dbus-interfaces') 20c2808f0SPatrick Williamsphosphor_logging_dep = dependency('phosphor-logging') 30c2808f0SPatrick Williamssdbusplus_dep = dependency('sdbusplus') 40c2808f0SPatrick Williamsstdplus_dep = dependency('stdplus') 52098dabeSJohn Wedig 6e6ffe704SJohn Edward Broadbentsubdir('erase') 7e6ffe704SJohn Edward Broadbent 82098dabeSJohn WediglibeStoraged_deps = [ 9b810c926SJohn Wedig dependency('libcryptsetup'), 100c2808f0SPatrick Williams dependency('openssl'), 110c2808f0SPatrick Williams phosphor_dbus_interfaces_dep, 120c2808f0SPatrick Williams phosphor_logging_dep, 130c2808f0SPatrick Williams sdbusplus_dep, 140c2808f0SPatrick Williams stdplus_dep, 152098dabeSJohn Wedig] 162098dabeSJohn Wedig 172098dabeSJohn WediglibeStoraged_lib = static_library( 182098dabeSJohn Wedig 'eStoraged-lib', 192098dabeSJohn Wedig 'estoraged.cpp', 20*a6e3b99dSJohn Edward Broadbent 'util.cpp', 212098dabeSJohn Wedig include_directories : eStoraged_headers, 222098dabeSJohn Wedig implicit_include_directories: false, 23e6ffe704SJohn Edward Broadbent dependencies: [libeStoraged_deps, libeStoragedErase_dep], 242098dabeSJohn Wedig) 252098dabeSJohn Wedig 262098dabeSJohn WediglibeStoraged = declare_dependency( 272098dabeSJohn Wedig dependencies: libeStoraged_deps, 282098dabeSJohn Wedig include_directories: eStoraged_headers, 29e6ffe704SJohn Edward Broadbent link_with: libeStoraged_lib, 30e6ffe704SJohn Edward Broadbent) 312098dabeSJohn Wedig 322098dabeSJohn Wedigexecutable( 332098dabeSJohn Wedig 'eStoraged', 342098dabeSJohn Wedig 'main.cpp', 352098dabeSJohn Wedig implicit_include_directories: false, 362098dabeSJohn Wedig dependencies: libeStoraged, 372098dabeSJohn Wedig install: true, 382098dabeSJohn Wedig install_dir: get_option('bindir') 392098dabeSJohn Wedig) 40b810c926SJohn Wedig 41b810c926SJohn Wedigbuild_tests = get_option('tests') 42b810c926SJohn Wedigif not build_tests.disabled() 43b810c926SJohn Wedig subdir('test') 44b810c926SJohn Wedigendif 45b810c926SJohn Wedig 46