Willy Tu | c710b97 | 2021-08-11 16:33:43 -0700 | [diff] [blame] | 1 | softpower_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 | |
| 12 | softpower_lib = static_library( |
| 13 | 'softpower_lib', |
| 14 | 'softoff.cpp', |
| 15 | conf_h, |
| 16 | dependencies: softpower_pre, |
| 17 | include_directories: root_inc) |
| 18 | |
| 19 | softpower_dep = declare_dependency( |
| 20 | dependencies: softpower_pre, |
| 21 | include_directories: root_inc, |
| 22 | link_with: softpower_lib) |
| 23 | |
| 24 | executable( |
| 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')) |