1*0c2808f0SPatrick Williamsphosphor_dbus_interfaces_dep = dependency('phosphor-dbus-interfaces') 2*0c2808f0SPatrick Williamsphosphor_logging_dep = dependency('phosphor-logging') 3*0c2808f0SPatrick Williamssdbusplus_dep = dependency('sdbusplus') 4*0c2808f0SPatrick Williamsstdplus_dep = dependency('stdplus') 52098dabeSJohn Wedig 6e6ffe704SJohn Edward Broadbentsubdir('erase') 7e6ffe704SJohn Edward Broadbent 82098dabeSJohn WediglibeStoraged_deps = [ 9b810c926SJohn Wedig dependency('libcryptsetup'), 10*0c2808f0SPatrick Williams dependency('openssl'), 11*0c2808f0SPatrick Williams phosphor_dbus_interfaces_dep, 12*0c2808f0SPatrick Williams phosphor_logging_dep, 13*0c2808f0SPatrick Williams sdbusplus_dep, 14*0c2808f0SPatrick Williams stdplus_dep, 152098dabeSJohn Wedig] 162098dabeSJohn Wedig 172098dabeSJohn WediglibeStoraged_lib = static_library( 182098dabeSJohn Wedig 'eStoraged-lib', 192098dabeSJohn Wedig 'estoraged.cpp', 202098dabeSJohn Wedig include_directories : eStoraged_headers, 212098dabeSJohn Wedig implicit_include_directories: false, 22e6ffe704SJohn Edward Broadbent dependencies: [libeStoraged_deps, libeStoragedErase_dep], 232098dabeSJohn Wedig) 242098dabeSJohn Wedig 252098dabeSJohn WediglibeStoraged = declare_dependency( 262098dabeSJohn Wedig dependencies: libeStoraged_deps, 272098dabeSJohn Wedig include_directories: eStoraged_headers, 28e6ffe704SJohn Edward Broadbent link_with: libeStoraged_lib, 29e6ffe704SJohn Edward Broadbent) 302098dabeSJohn Wedig 312098dabeSJohn Wedigexecutable( 322098dabeSJohn Wedig 'eStoraged', 332098dabeSJohn Wedig 'main.cpp', 342098dabeSJohn Wedig implicit_include_directories: false, 352098dabeSJohn Wedig dependencies: libeStoraged, 362098dabeSJohn Wedig install: true, 372098dabeSJohn Wedig install_dir: get_option('bindir') 382098dabeSJohn Wedig) 39b810c926SJohn Wedig 40b810c926SJohn Wedigbuild_tests = get_option('tests') 41b810c926SJohn Wedigif not build_tests.disabled() 42b810c926SJohn Wedig subdir('test') 43b810c926SJohn Wedigendif 44b810c926SJohn Wedig 45