mirror of
https://github.com/frida/frida-tools.git
synced 2026-11-07 09:35:59 -10:00
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.
39 lines
1.0 KiB
Meson
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,
|
|
)
|