blob: 31a817648d12aaed00e3c1cff6a1776163438df4 [file] [log] [blame]
Andy YF Wang40247cc2019-09-06 18:30:56 +08001sequencer_src = []
2
3if sequencer == 'ucd90160'
4 ucd90160_defs_cpp = custom_target(
5 'ucd90160_defs.cpp',
6 command: [
7 prog_python, '@INPUT0@',
8 '-i', '@INPUT1@', '-o', meson.current_build_dir(),
9 ],
10 input: [
11 'gen-ucd90160-defs.py',
12 get_option('ucd90160-yaml'),
13 'templates/ucd90160_defs.mako.cpp'
14 ],
15 output: 'ucd90160_defs.cpp',
16 )
17
18 sequencer_src += ['ucd90160.cpp', ucd90160_defs_cpp]
19
20elif sequencer == 'mihawk-cpld'
21 sequencer_src += 'mihawk-cpld.cpp'
22endif
Brad Bishop39b370a2019-09-02 02:37:32 -040023
24executable(
25 'pseq-monitor',
Brad Bishop39b370a2019-09-02 02:37:32 -040026 error_hpp,
27 'main.cpp',
28 'pgood_monitor.cpp',
29 'runtime_monitor.cpp',
Andy YF Wang40247cc2019-09-06 18:30:56 +080030 sequencer_src,
Brad Bishop39b370a2019-09-02 02:37:32 -040031 dependencies: [
Patrick Williams9c446cd2023-09-01 15:25:11 -050032 cli11_dep,
Patrick Williams888bebd2023-05-31 19:19:49 -050033 libi2c_dep,
34 nlohmann_json_dep,
Brad Bishop39b370a2019-09-02 02:37:32 -040035 phosphor_dbus_interfaces,
36 phosphor_logging,
37 sdbusplus,
38 sdeventplus,
Brad Bishop39b370a2019-09-02 02:37:32 -040039 ],
40 include_directories: '..',
41 install: true,
42 link_with: libpower,
43)