1softpower_pre = [
2  ipmid_dep,
3  phosphor_logging_dep,
4  phosphor_dbus_interfaces_dep,
5  sdeventplus_dep,
6  sdbusplus_dep,
7  systemd,
8  softoff_dbus,
9  boost
10]
11
12softpower_lib = static_library(
13  'softpower_lib',
14  'softoff.cpp',
15  conf_h,
16  dependencies: softpower_pre,
17  include_directories: root_inc)
18
19softpower_dep = declare_dependency(
20  dependencies: softpower_pre,
21  include_directories: root_inc,
22  link_with: softpower_lib)
23
24executable(
25  'phosphor-softpoweroff',
26  'mainapp.cpp',
27  implicit_include_directories: false,
28  dependencies: softpower_dep,
29  include_directories: root_inc,
30  install: true,
31  install_dir: get_option('bindir'))
32