blob: 50a5c7c537da8584b1fc89d05f482fe71862141c [file] [log] [blame]
John Wedig2098dab2021-09-14 13:56:28 -07001
2libeStoraged_deps = [
3 dependency('sdbusplus'),
John Edward Broadbent4e13b0a2021-11-15 15:21:59 -08004 dependency('phosphor-logging',
5 fallback: ['phosphor-logging',
6 'phosphor_logging_dep'],
7 ),
John Wedig2098dab2021-09-14 13:56:28 -07008 eStoraged_dbus,
John Wedigb810c922021-11-17 16:38:03 -08009 dependency('openssl'),
10 dependency('libcryptsetup'),
11 dependency('stdplus'),
John Wedig2098dab2021-09-14 13:56:28 -070012]
13
14libeStoraged_lib = static_library(
15 'eStoraged-lib',
16 'estoraged.cpp',
17 include_directories : eStoraged_headers,
18 implicit_include_directories: false,
19 dependencies: libeStoraged_deps,
20)
21
22libeStoraged = declare_dependency(
23 dependencies: libeStoraged_deps,
24 include_directories: eStoraged_headers,
25 link_with: libeStoraged_lib)
26
27executable(
28 'eStoraged',
29 'main.cpp',
30 implicit_include_directories: false,
31 dependencies: libeStoraged,
32 install: true,
33 install_dir: get_option('bindir')
34)
John Wedigb810c922021-11-17 16:38:03 -080035
36build_tests = get_option('tests')
37if not build_tests.disabled()
38 subdir('test')
39endif
40