blob: f34ad98f7d2b9ffef4f0c6fb034d9f1471a7b0f1 [file] [log] [blame]
Willy Tuc710b972021-08-11 16:33:43 -07001softpower_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_coroutine
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'))