blob: cdc5d0341aae4acf60f737e9735d6e2798a02f8e [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,
Konstantin Aladysheve11895f2024-04-04 12:35:33 +03009 boost
Willy Tuc710b972021-08-11 16:33:43 -070010]
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'))