Files
frida-tools/meson.build
T
Ole André Vadla Ravnås e7a4b281e1 Revert back to setuptools for now
So we can publish new releases. I don't have time to investigate the
following error:

    ERROR InvalidDistribution: Metadata is missing required fields:
    Name, Version. Make sure the distribution includes the files where
    those fields are specified, and is using a supported
    Metadata-Version: 1.0, 1.1, 1.2, 2.0, 2.1, 2.2.
2025-10-24 19:39:08 +02:00

39 lines
1.0 KiB
Meson

project('frida-tools', 'c',
version: run_command(find_program('python3'), files('setup.py'), '-V',
capture: true,
check: true).stdout().strip(),
meson_version: '>=1.1.0',
)
python = import('python').find_installation()
node = find_program('node', version: '>=18.0.0', native: true, required: false)
if not node.found()
error('Need Node.js >= 18.0.0 to process JavaScript code at build time')
endif
npm = find_program('npm', native: true, required: false)
if not npm.found()
error('Need npm to process JavaScript code at build time')
endif
subdir('agents')
subdir('bridges')
subdir('apps')
subdir('frida_tools')
subdir('scripts')
subdir('completions')
pathsep = host_machine.system() == 'windows' ? ';' : ':'
test('frida-tools', python,
args: ['-m', 'unittest', 'discover'],
workdir: meson.current_source_dir(),
env: {
'PYTHONPATH': pathsep.join([
meson.current_source_dir() / 'subprojects' / 'frida-python',
meson.current_build_dir() / 'subprojects' / 'frida-python' / 'src',
]),
},
timeout: 30,
)