Willy Tu | c710b97 | 2021-08-11 16:33:43 -0700 | [diff] [blame] | 1 | softpower_pre = [ |
Patrick Williams | 62ce159 | 2025-02-03 14:12:56 -0500 | [diff] [blame^] | 2 | boost, |
| 3 | ipmid_dep, |
| 4 | libsystemd_dep, |
| 5 | phosphor_dbus_interfaces_dep, |
| 6 | phosphor_logging_dep, |
| 7 | sdbusplus_dep, |
| 8 | sdeventplus_dep, |
| 9 | softoff_dbus, |
Willy Tu | c710b97 | 2021-08-11 16:33:43 -0700 | [diff] [blame] | 10 | ] |
| 11 | |
| 12 | softpower_lib = static_library( |
Patrick Williams | 62ce159 | 2025-02-03 14:12:56 -0500 | [diff] [blame^] | 13 | 'softpower_lib', |
| 14 | 'softoff.cpp', |
| 15 | conf_h, |
| 16 | dependencies: softpower_pre, |
| 17 | include_directories: root_inc, |
| 18 | ) |
Willy Tu | c710b97 | 2021-08-11 16:33:43 -0700 | [diff] [blame] | 19 | |
| 20 | softpower_dep = declare_dependency( |
Patrick Williams | 62ce159 | 2025-02-03 14:12:56 -0500 | [diff] [blame^] | 21 | dependencies: softpower_pre, |
| 22 | include_directories: root_inc, |
| 23 | link_with: softpower_lib, |
| 24 | ) |
Willy Tu | c710b97 | 2021-08-11 16:33:43 -0700 | [diff] [blame] | 25 | |
| 26 | executable( |
Patrick Williams | 62ce159 | 2025-02-03 14:12:56 -0500 | [diff] [blame^] | 27 | 'phosphor-softpoweroff', |
| 28 | 'mainapp.cpp', |
| 29 | implicit_include_directories: false, |
| 30 | dependencies: softpower_dep, |
| 31 | include_directories: root_inc, |
| 32 | install: true, |
| 33 | install_dir: get_option('bindir'), |
| 34 | ) |