blob: a85b3bc97349379acb6a67d1d1dca3470072f63a [file] [log] [blame]
John Wedig2098dab2021-09-14 13:56:28 -07001
John Edward Broadbente6ffe702021-10-14 14:03:11 -07002subdir('erase')
3
John Wedig2098dab2021-09-14 13:56:28 -07004libeStoraged_deps = [
5 dependency('sdbusplus'),
John Edward Broadbent4e13b0a2021-11-15 15:21:59 -08006 dependency('phosphor-logging',
7 fallback: ['phosphor-logging',
8 'phosphor_logging_dep'],
9 ),
John Wedigb810c922021-11-17 16:38:03 -080010 dependency('openssl'),
11 dependency('libcryptsetup'),
12 dependency('stdplus'),
John Wedig972c3fa2021-12-29 17:30:41 -080013 dependency('phosphor-dbus-interfaces'),
John Wedig2098dab2021-09-14 13:56:28 -070014]
15
16libeStoraged_lib = static_library(
17 'eStoraged-lib',
18 'estoraged.cpp',
19 include_directories : eStoraged_headers,
20 implicit_include_directories: false,
John Edward Broadbente6ffe702021-10-14 14:03:11 -070021 dependencies: [libeStoraged_deps, libeStoragedErase_dep],
John Wedig2098dab2021-09-14 13:56:28 -070022)
23
24libeStoraged = declare_dependency(
25 dependencies: libeStoraged_deps,
26 include_directories: eStoraged_headers,
John Edward Broadbente6ffe702021-10-14 14:03:11 -070027 link_with: libeStoraged_lib,
28)
John Wedig2098dab2021-09-14 13:56:28 -070029
30executable(
31 'eStoraged',
32 'main.cpp',
33 implicit_include_directories: false,
34 dependencies: libeStoraged,
35 install: true,
36 install_dir: get_option('bindir')
37)
John Wedigb810c922021-11-17 16:38:03 -080038
39build_tests = get_option('tests')
40if not build_tests.disabled()
41 subdir('test')
42endif
43