mirror of
https://github.com/frida/frida-python
synced 2026-06-08 14:16:17 +00:00
88330bfbb9
- Make full use of Meson's Python module. - Drop python_incdir option. It's now possible to use a .pc file to specify the include path. - Drop config.h, as we only needed it for HAVE_MACOS, which we can easily check for in the single location that we need it.
35 lines
809 B
Meson
35 lines
809 B
Meson
project('frida-python', 'c', version: '1.0.0')
|
|
|
|
python = import('python').find_installation()
|
|
|
|
cc = meson.get_compiler('c')
|
|
|
|
frida_component_cflags = []
|
|
ndebug = get_option('b_ndebug')
|
|
if ndebug == 'true' or (ndebug == 'if-release' and not get_option('debug'))
|
|
frida_component_cflags += [
|
|
'-DG_DISABLE_ASSERT',
|
|
'-DG_DISABLE_CHECKS',
|
|
'-DG_DISABLE_CAST_CHECKS',
|
|
]
|
|
endif
|
|
|
|
python_dep = python.dependency()
|
|
frida_core_dep = dependency('frida-core-1.0')
|
|
|
|
os_deps = []
|
|
host_os_family = host_machine.system()
|
|
if host_os_family != 'windows'
|
|
os_deps += dependency('gio-unix-2.0')
|
|
endif
|
|
|
|
subdir('src')
|
|
subdir('frida')
|
|
|
|
test('frida-python', python,
|
|
args: ['-m', 'unittest', 'discover'],
|
|
workdir: meson.current_source_dir(),
|
|
env: {'PYTHONPATH': meson.current_build_dir() / 'src'},
|
|
timeout: 30,
|
|
)
|