Files
pancake 911d82d214 Consume ghidra-native 0.7.2 and refresh subprojects in place
Use the upstream Meson dependency, shared source manifest, and Sleigh compilation helper instead of maintaining local copies. Check pinned subprojects before Make and XPS builds, cache fetched revisions for offline reuse, and save local ghidra-native changes in a named stash before updating.
2026-10-15 21:32:18 +02:00

29 lines
835 B
Meson

# Sleigh compilation for processor definitions
proc_file = meson.current_source_dir() / '..' / 'ghidra-processors.txt.default'
proc_list = import('fs').read(proc_file).strip().split('\n')
proc_dir = ghidra.get_variable('processor_dir')
sleigh_dir = r2_plugdir / 'r2ghidra_sleigh'
sleigh_compile = ghidra.get_variable('sleigh_compile')
python = find_program('python3', 'python', required: true)
foreach proc : ['DATA'] + proc_list
proc = proc.strip()
if proc == '' or proc.startswith('#')
continue
endif
custom_target('sleigh-' + proc,
command: [python, sleigh_compile, sleighc_exe, proc_dir / proc, '@OUTPUT@'],
output: 'sleigh-' + proc + '.stamp',
build_by_default: true,
)
install_subdir(proc_dir / proc / 'data' / 'languages',
install_dir: sleigh_dir,
strip_directory: true,
)
endforeach