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