Thang Tran | ba2241c | 2021-10-26 17:47:09 +0700 | [diff] [blame] | 1 | inc_dirs = [ include_directories('../') ] |
| 2 | |
| 3 | gpioplus = dependency('gpioplus') |
| 4 | gpiodcxx = dependency( |
| 5 | 'libgpiodcxx', |
| 6 | fallback: ['libgpiod', 'gpiodcxx_dep'] |
| 7 | ) |
| 8 | |
| 9 | executable( |
| 10 | 'phosphor-host-condition-gpio', |
| 11 | 'host_condition.cpp', |
| 12 | 'host_condition_main.cpp', |
| 13 | dependencies: [ |
| 14 | gpioplus, sdbusplus, sdeventplus, phosphorlogging, |
| 15 | phosphordbusinterfaces, gpiodcxx |
| 16 | ], |
| 17 | include_directories : inc_dirs, |
| 18 | implicit_include_directories: true, |
| 19 | install: true |
| 20 | ) |
| 21 | |
| 22 | configure_file( |
| 23 | input: 'phosphor-host-condition-gpio@.service', |
| 24 | output: 'phosphor-host-condition-gpio@.service', |
| 25 | copy: true, |
| 26 | install_dir: systemd_system_unit_dir, |
| 27 | install: true, |
| 28 | ) |