blob: c4a2745a7d23b97ed06e4b2398801d8fbd9a3d82 [file] [log] [blame]
Brad Bishop39b370a2019-09-02 02:37:32 -04001ucd90160_defs_cpp = custom_target(
2 'ucd90160_defs.cpp',
3 command: [
Patrick Williams91be1702025-02-01 08:37:05 -05004 prog_python,
5 '@INPUT0@',
6 '-i',
7 '@INPUT1@',
8 '-o',
9 meson.current_build_dir(),
Brad Bishop39b370a2019-09-02 02:37:32 -040010 ],
11 input: [
12 'gen-ucd90160-defs.py',
13 get_option('ucd90160-yaml'),
Patrick Williams91be1702025-02-01 08:37:05 -050014 'templates/ucd90160_defs.mako.cpp',
Brad Bishop39b370a2019-09-02 02:37:32 -040015 ],
16 output: 'ucd90160_defs.cpp',
17)
18
19executable(
20 'pseq-monitor',
21 'argument.cpp',
22 error_hpp,
23 'main.cpp',
24 'pgood_monitor.cpp',
25 'runtime_monitor.cpp',
26 'ucd90160.cpp',
27 ucd90160_defs_cpp,
28 dependencies: [
29 phosphor_dbus_interfaces,
30 phosphor_logging,
31 sdbusplus,
32 sdeventplus,
33 ],
34 include_directories: '..',
35 install: true,
36 link_with: libpower,
37)