1inc_dirs = [ include_directories('../') ]
2
3filesystem = import('fs')
4gpioplus = dependency('gpioplus')
5gpiodcxx = dependency(
6    'libgpiodcxx',
7    fallback: ['libgpiod', 'gpiodcxx_dep']
8)
9
10executable(
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
23filesystem.copyfile(
24  'phosphor-host-condition-gpio@.service',
25  install_dir: systemd_system_unit_dir,
26  install: true
27)
28