Skip to content

Commit

Permalink
meson: Avoid triggering Vala requirement heuristic
Browse files Browse the repository at this point in the history
Our configure script, which is a thin wrapper around Meson's setup
command, has an overly simplistic heuristic to detect whether a project
needs the Vala compiler. We should figure out a better solution, but
this will have to do for now.
  • Loading branch information
oleavr committed May 30, 2024
1 parent 2489f42 commit d1e1069
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 2 additions & 1 deletion gum/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ if gir.found()
)
endif

uninstalled_vapidir = meson.current_source_dir() / 'vapi'

uninstalled_variables = {
'frida_vapidir': uninstalled_vapidir,
Expand All @@ -369,7 +370,7 @@ uninstalled_variables = {
}

installed_variables = {
'frida_vapidir': vapidir,
'frida_vapidir': get_option('prefix') / 'share' / 'vala' / 'vapi',
'frida_dbghelp_prefix': dbghelp_prefix,
'frida_symsrv_prefix': symsrv_prefix,
}
Expand Down
3 changes: 0 additions & 3 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -747,9 +747,6 @@ endif
install_header_basedir = 'frida-' + api_version
install_header_subdir = install_header_basedir + '/gum'

vapidir = get_option('prefix') / 'share' / 'vala' / 'vapi'
uninstalled_vapidir = meson.current_source_dir() / 'vapi'

subdir('ext')
subdir('gum')
if not diet
Expand Down
2 changes: 1 addition & 1 deletion vapi/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ if have_gumjs
]
endif

install_data(vapis, install_dir: vapidir)
install_data(vapis, install_dir: get_option('prefix') / 'share' / 'vala' / 'vapi')

0 comments on commit d1e1069

Please sign in to comment.