William A. Kennington III | 0a01b2a | 2021-05-13 18:38:57 -0700 | [diff] [blame] | 1 | # Generated file; do not modify. |
| 2 | sdbuspp_gen_meson_ver = run_command( |
| 3 | sdbuspp_gen_meson_prog, |
| 4 | '--version', |
Patrick Williams | a307b11 | 2023-01-09 15:16:15 -0600 | [diff] [blame] | 5 | check: true, |
William A. Kennington III | 0a01b2a | 2021-05-13 18:38:57 -0700 | [diff] [blame] | 6 | ).stdout().strip().split('\n')[0] |
| 7 | |
Patrick Williams | 5be691c | 2025-01-10 15:12:30 -0500 | [diff] [blame] | 8 | if sdbuspp_gen_meson_ver != 'sdbus++-gen-meson version 10' |
William A. Kennington III | 0a01b2a | 2021-05-13 18:38:57 -0700 | [diff] [blame] | 9 | warning('Generated meson files from wrong version of sdbus++-gen-meson.') |
| 10 | warning( |
Patrick Williams | 5be691c | 2025-01-10 15:12:30 -0500 | [diff] [blame] | 11 | 'Expected "sdbus++-gen-meson version 10", got:', |
William A. Kennington III | 0a01b2a | 2021-05-13 18:38:57 -0700 | [diff] [blame] | 12 | sdbuspp_gen_meson_ver |
| 13 | ) |
| 14 | endif |
| 15 | |
Patrick Williams | 5be691c | 2025-01-10 15:12:30 -0500 | [diff] [blame] | 16 | inst_markdown_dir = get_option('datadir') / 'doc' / meson.project_name() |
| 17 | inst_registry_dir = get_option('datadir') / 'redfish-registry' / meson.project_name() |
| 18 | |
| 19 | generated_sources = [] |
| 20 | generated_markdown = [] |
| 21 | generated_registry = [] |
| 22 | |
| 23 | foreach d : yaml_selected_subdirs |
| 24 | subdir(d) |
| 25 | endforeach |
| 26 | |
| 27 | generated_headers = [] |
| 28 | foreach s : generated_sources |
| 29 | foreach f : s.to_list() |
| 30 | if f.full_path().endswith('.hpp') |
| 31 | generated_headers += f |
| 32 | endif |
| 33 | endforeach |
| 34 | endforeach |
| 35 | |