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