1ucd90160_defs_cpp = custom_target(
2    'ucd90160_defs.cpp',
3    command: [
4        prog_python, '@INPUT0@',
5        '-i', '@INPUT1@', '-o', meson.current_build_dir(),
6    ],
7    input: [
8        'gen-ucd90160-defs.py',
9        get_option('ucd90160-yaml'),
10        'templates/ucd90160_defs.mako.cpp'
11    ],
12    output: 'ucd90160_defs.cpp',
13)
14
15executable(
16    'pseq-monitor',
17    'argument.cpp',
18    error_hpp,
19    'main.cpp',
20    'pgood_monitor.cpp',
21    'runtime_monitor.cpp',
22    'ucd90160.cpp',
23    ucd90160_defs_cpp,
24    dependencies: [
25        phosphor_dbus_interfaces,
26        phosphor_logging,
27        sdbusplus,
28        sdeventplus,
29    ],
30    include_directories: '..',
31    install: true,
32    link_with: libpower,
33)
34