blob: 73813100ec5f29f2f601b608c2388b9da3abd509 [file] [log] [blame]
Patrick Williams71e399d2025-02-01 08:36:54 -05001inc_dirs = [include_directories('../')]
Thang Tranba2241c2021-10-26 17:47:09 +07002
Pavithra Barithaya54777962024-06-20 08:00:56 -05003filesystem = import('fs')
Thang Tranba2241c2021-10-26 17:47:09 +07004gpioplus = dependency('gpioplus')
Patrick Williams71e399d2025-02-01 08:36:54 -05005gpiodcxx = dependency('libgpiodcxx', fallback: ['libgpiod', 'gpiodcxx_dep'])
Thang Tranba2241c2021-10-26 17:47:09 +07006
7executable(
8 'phosphor-host-condition-gpio',
9 'host_condition.cpp',
10 'host_condition_main.cpp',
11 dependencies: [
Patrick Williams71e399d2025-02-01 08:36:54 -050012 gpioplus,
13 sdbusplus,
14 sdeventplus,
15 phosphorlogging,
16 phosphordbusinterfaces,
17 gpiodcxx,
Thang Tranba2241c2021-10-26 17:47:09 +070018 ],
Patrick Williams71e399d2025-02-01 08:36:54 -050019 include_directories: inc_dirs,
Thang Tranba2241c2021-10-26 17:47:09 +070020 implicit_include_directories: true,
Patrick Williams71e399d2025-02-01 08:36:54 -050021 install: true,
Thang Tranba2241c2021-10-26 17:47:09 +070022)
23
Pavithra Barithaya54777962024-06-20 08:00:56 -050024filesystem.copyfile(
Patrick Williams71e399d2025-02-01 08:36:54 -050025 'phosphor-host-condition-gpio@.service',
26 install_dir: systemd_system_unit_dir,
27 install: true,
Thang Tranba2241c2021-10-26 17:47:09 +070028)