xref: /openbmc/estoraged/src/meson.build (revision 4e13b0a1)
12098dabeSJohn Wedig
22098dabeSJohn WediglibeStoraged_deps = [
32098dabeSJohn Wedig  dependency('sdbusplus'),
4*4e13b0a1SJohn Edward Broadbent  dependency('phosphor-logging',
5*4e13b0a1SJohn Edward Broadbent    fallback: ['phosphor-logging',
6*4e13b0a1SJohn Edward Broadbent               'phosphor_logging_dep'],
7*4e13b0a1SJohn Edward Broadbent    ),
82098dabeSJohn Wedig  eStoraged_dbus,
92098dabeSJohn Wedig]
102098dabeSJohn Wedig
112098dabeSJohn WediglibeStoraged_lib = static_library(
122098dabeSJohn Wedig  'eStoraged-lib',
132098dabeSJohn Wedig  'estoraged.cpp',
142098dabeSJohn Wedig  include_directories : eStoraged_headers,
152098dabeSJohn Wedig  implicit_include_directories: false,
162098dabeSJohn Wedig  dependencies: libeStoraged_deps,
172098dabeSJohn Wedig)
182098dabeSJohn Wedig
192098dabeSJohn WediglibeStoraged = declare_dependency(
202098dabeSJohn Wedig  dependencies: libeStoraged_deps,
212098dabeSJohn Wedig  include_directories: eStoraged_headers,
222098dabeSJohn Wedig  link_with: libeStoraged_lib)
232098dabeSJohn Wedig
242098dabeSJohn Wedigexecutable(
252098dabeSJohn Wedig  'eStoraged',
262098dabeSJohn Wedig  'main.cpp',
272098dabeSJohn Wedig  implicit_include_directories: false,
282098dabeSJohn Wedig  dependencies: libeStoraged,
292098dabeSJohn Wedig  install: true,
302098dabeSJohn Wedig  install_dir: get_option('bindir')
312098dabeSJohn Wedig)
32