-
-
Notifications
You must be signed in to change notification settings - Fork 99
/
meson.build
39 lines (33 loc) · 1.03 KB
/
meson.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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',
)
subproject('frida-python')
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('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,
)