Skip to content

Commit

Permalink
build: hailo: Test for Tappas libdir
Browse files Browse the repository at this point in the history
This has changed between Tappas versions, so test for the correct lib
dir to maintain backward compatibility.

Signed-off-by: Naushir Patuck <[email protected]>
  • Loading branch information
naushir committed Sep 5, 2024
1 parent 8b12193 commit 87974bf
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion post_processing_stages/hailo/meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
hailo_tappas_lib_dir = hailo_tappas_dep.get_variable('tappas_libdir')
hailo_tappas_posproc_libdir = hailo_tappas_lib_dir / 'post-process'

# Find the Tappas postprocessing *.so lib dir - this is different depending on the Tappas version.
hailo_tappas_posproc_libdir = ''
pp_dirs = ['post-process', 'post_processes']
foreach dir : pp_dirs
if fs.is_dir(hailo_tappas_lib_dir / dir)
hailo_tappas_posproc_libdir = hailo_tappas_lib_dir / dir
break
endif
endforeach

if hailo_tappas_posproc_libdir == ''
error('Cannot find Hailo Tappas postprocessing libdir')
endif

hailo_conf_data = configuration_data()
hailo_conf_data.set('HAILO_POSTPROC_LIB_DIR', '"' + hailo_tappas_posproc_libdir + '"')
Expand Down

0 comments on commit 87974bf

Please sign in to comment.