Skip to content

Commit

Permalink
Improve --vips-config for internal dependencies
Browse files Browse the repository at this point in the history
Dependencies created using `declare_dependency()` does not have a
version number or name.

Mirrors commit ec432a5.
  • Loading branch information
kleisauke committed Nov 1, 2024
1 parent 94502d8 commit c4af9b9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libvips/include/vips/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,11 @@ foreach _, section : build_summary
endforeach
foreach _, section : build_features
foreach key, arr : section
dep_name = arr[0]
found = arr[1].found()
dep_name = found ? arr[1].name() : arr[0]
if found and arr[1].type_name() != 'internal'
dep_name = arr[1].name()
endif
dynamic_module = arr.length() > 2 ? ' (dynamic module: @0@)'.format(arr[2]) : ''
vips_verbose_config += '@0@ with @1@: @2@@3@'.format(key, dep_name, found, dynamic_module)
endforeach
Expand Down

0 comments on commit c4af9b9

Please sign in to comment.