mirror of
https://github.com/frida/frida-python
synced 2026-06-08 14:16:17 +00:00
9706e4be99
So we only have one top-level package, to avoid confusing IDEs. Also add missing files to the Meson build system.
22 lines
612 B
Meson
22 lines
612 B
Meson
py_sources = [
|
|
'__init__.pyi',
|
|
'py.typed',
|
|
]
|
|
python.install_sources(py_sources, subdir: 'frida' / '_frida', pure: false)
|
|
|
|
extra_link_args = []
|
|
if host_os_family == 'darwin'
|
|
extra_link_args += '-Wl,-exported_symbol,_PyInit__frida'
|
|
elif host_os_family != 'windows'
|
|
extra_link_args += '-Wl,--version-script,' + meson.current_source_dir() / 'extension.version'
|
|
endif
|
|
|
|
extension = python.extension_module('_frida', 'extension.c',
|
|
limited_api: '3.7',
|
|
c_args: frida_component_cflags,
|
|
link_args: extra_link_args,
|
|
dependencies: [python_dep, frida_core_dep, os_deps],
|
|
install: true,
|
|
subdir: 'frida',
|
|
)
|