Andrew Geissler | 70d72f8 | 2022-03-23 13:15:05 -0500 | [diff] [blame] | 1 | source = [ |
| 2 | 'side_switch.cpp', |
Andrew Geissler | 03b3082 | 2022-03-24 11:04:40 -0500 | [diff] [blame] | 3 | '../utils.cpp', |
Andrew Geissler | 70d72f8 | 2022-03-23 13:15:05 -0500 | [diff] [blame] | 4 | ] |
| 5 | |
| 6 | executable( |
| 7 | 'phosphor-bmc-side-switch', |
| 8 | source, |
Andrew Geissler | 03b3082 | 2022-03-24 11:04:40 -0500 | [diff] [blame] | 9 | include_directories: ['..'], |
Andrew Geissler | 70d72f8 | 2022-03-23 13:15:05 -0500 | [diff] [blame] | 10 | dependencies: [ |
| 11 | phosphor_logging_dep, |
| 12 | ], |
| 13 | install: true, |
| 14 | install_dir: get_option('bindir') |
| 15 | ) |
Andrew Geissler | 119e5a2 | 2022-03-25 08:54:53 -0500 | [diff] [blame] | 16 | |
| 17 | systemd_system_unit_dir = dependency('systemd').get_variable( |
Patrick Williams | e80b5bc | 2023-04-12 08:01:05 -0500 | [diff] [blame] | 18 | 'systemdsystemunitdir', |
Andrew Geissler | 119e5a2 | 2022-03-25 08:54:53 -0500 | [diff] [blame] | 19 | pkgconfig_define: ['prefix', get_option('prefix')]) |
| 20 | |
| 21 | install_data( |
| 22 | 'phosphor-bmc-side-switch.service', |
| 23 | install_dir: systemd_system_unit_dir) |