Skip to content

Commit 87974bf

Browse files
committed
build: hailo: Test for Tappas libdir
This has changed between Tappas versions, so test for the correct lib dir to maintain backward compatibility. Signed-off-by: Naushir Patuck <[email protected]>
1 parent 8b12193 commit 87974bf

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

post_processing_stages/hailo/meson.build

+14-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
hailo_tappas_lib_dir = hailo_tappas_dep.get_variable('tappas_libdir')
2-
hailo_tappas_posproc_libdir = hailo_tappas_lib_dir / 'post-process'
2+
3+
# Find the Tappas postprocessing *.so lib dir - this is different depending on the Tappas version.
4+
hailo_tappas_posproc_libdir = ''
5+
pp_dirs = ['post-process', 'post_processes']
6+
foreach dir : pp_dirs
7+
if fs.is_dir(hailo_tappas_lib_dir / dir)
8+
hailo_tappas_posproc_libdir = hailo_tappas_lib_dir / dir
9+
break
10+
endif
11+
endforeach
12+
13+
if hailo_tappas_posproc_libdir == ''
14+
error('Cannot find Hailo Tappas postprocessing libdir')
15+
endif
316

417
hailo_conf_data = configuration_data()
518
hailo_conf_data.set('HAILO_POSTPROC_LIB_DIR', '"' + hailo_tappas_posproc_libdir + '"')

0 commit comments

Comments
 (0)