blob: cdc5d0341aae4acf60f737e9735d6e2798a02f8e [file] [log] [blame]
softpower_pre = [
ipmid_dep,
phosphor_logging_dep,
phosphor_dbus_interfaces_dep,
sdeventplus_dep,
sdbusplus_dep,
systemd,
softoff_dbus,
boost
]
softpower_lib = static_library(
'softpower_lib',
'softoff.cpp',
conf_h,
dependencies: softpower_pre,
include_directories: root_inc)
softpower_dep = declare_dependency(
dependencies: softpower_pre,
include_directories: root_inc,
link_with: softpower_lib)
executable(
'phosphor-softpoweroff',
'mainapp.cpp',
implicit_include_directories: false,
dependencies: softpower_dep,
include_directories: root_inc,
install: true,
install_dir: get_option('bindir'))