misc: Implemented an 'all' mode for the Meson build system

This commit is contained in:
dragonmux
2023-11-29 01:53:34 +00:00
committed by Piotr Esden-Tempski
parent e1746a04ae
commit 04977998c2
4 changed files with 18 additions and 8 deletions

View File

@@ -34,9 +34,11 @@ target_paths = {
'stm32f1': 'stm32/f1'
}
target_path = target_paths[target_platform]
subdir(f'libopencm3/@target_path@')
target_vector_nvic = declare_dependency(
sources: target_nvic_header,
)
if target_platform != 'all'
target_path = target_paths[target_platform]
subdir(f'libopencm3/@target_path@')
else
foreach target_name, target_path : target_paths
subdir(f'libopencm3/@target_path@')
endforeach
endif