Skip to content

Commit

Permalink
meson: Use project's mkdevkit.py when subproject
Browse files Browse the repository at this point in the history
  • Loading branch information
oleavr committed Apr 10, 2024
1 parent 2060e32 commit 36fba5f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,11 @@ if get_option('devkits').length() != 0
if get_option('default_library') != 'static'
error('Devkits can only be generated from static libraries')
endif
mkdevkit = find_program('./releng/mkdevkit.py')
releng = meson.global_source_root() / 'releng'
if not import('fs').exists(releng)
releng = meson.project_source_root() / 'releng'
endif
mkdevkit = find_program(releng / 'mkdevkit.py')
uninstalled_dir = meson.global_build_root() / 'meson-uninstalled'
devkit_options = [
'--cc', '>>>', cc.cmd_array(), '<<<',
Expand Down

0 comments on commit 36fba5f

Please sign in to comment.