-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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.
- Loading branch information
Showing
6 changed files
with
15 additions
and
106 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
extra_link_args = [] | ||
if host_os_family == 'darwin' | ||
extra_link_args += ['-Wl,-exported_symbol,_PyInit__frida'] | ||
extra_link_args += '-Wl,-exported_symbol,_PyInit__frida' | ||
elif host_os_family != 'windows' | ||
extra_link_args += ['-Wl,--version-script,' + join_paths(meson.current_source_dir(), '_frida.version')] | ||
extra_link_args += '-Wl,--version-script,' + meson.current_source_dir() / '_frida.version' | ||
endif | ||
|
||
extension = shared_module('_frida', '_frida.c', | ||
name_prefix: '', | ||
name_suffix: 'so', | ||
extension = python.extension_module('_frida', '_frida.c', | ||
limited_api: '3.7', | ||
c_args: frida_component_cflags, | ||
include_directories: include_directories(python_incdir), | ||
link_args: extra_link_args, | ||
dependencies: [frida_core_dep] + os_deps, | ||
dependencies: [python_dep, frida_core_dep, os_deps], | ||
install: true, | ||
install_dir: python_site_packages, | ||
) |