blob: 24d03e3e9869d1b83f41f760e919c4536f1bed0d [file] [log] [blame]
Thang Tranba2241c2021-10-26 17:47:09 +07001inc_dirs = [ include_directories('../') ]
2
Pavithra Barithaya54777962024-06-20 08:00:56 -05003filesystem = import('fs')
Thang Tranba2241c2021-10-26 17:47:09 +07004gpioplus = 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
Pavithra Barithaya54777962024-06-20 08:00:56 -050023filesystem.copyfile(
24 'phosphor-host-condition-gpio@.service',
25 install_dir: systemd_system_unit_dir,
26 install: true
Thang Tranba2241c2021-10-26 17:47:09 +070027)