mirror of
https://github.com/termux/termux-packages
synced 2024-06-19 11:57:09 +00:00
52 lines
1.8 KiB
Diff
52 lines
1.8 KiB
Diff
diff -uNr gobject-introspection/giscanner/meson.build gobject-introspection.mod/giscanner/meson.build
|
|
--- gobject-introspection/giscanner/meson.build 2021-06-03 13:43:38.060569823 +0000
|
|
+++ gobject-introspection.mod/giscanner/meson.build 2021-06-03 13:55:08.705053742 +0000
|
|
@@ -98,24 +98,12 @@
|
|
dependencies: [glib_dep, gobject_dep, gio_dep, gmodule_dep],
|
|
)
|
|
|
|
-# https://github.com/mesonbuild/meson/issues/4117
|
|
-if host_machine.system() == 'windows'
|
|
- python_ext_dep = python.dependency()
|
|
-else
|
|
- python_ext_dep = python.dependency().partial_dependency(compile_args: true)
|
|
-endif
|
|
-
|
|
-if not python_ext_dep.found()
|
|
- # For example if Python is 32bit but we require a 64bit variant
|
|
- error('Python installation not useable')
|
|
-endif
|
|
-
|
|
giscanner_pymod = python.extension_module('_giscanner', ['giscannermodule.c'],
|
|
link_with: giscanner_lib,
|
|
c_args: gi_hidden_visibility_cflags + custom_c_args,
|
|
include_directories : configinc,
|
|
- dependencies: [glib_dep, gobject_dep, gio_dep, gmodule_dep,
|
|
- python_ext_dep],
|
|
+ dependencies: [glib_dep, gobject_dep, gio_dep, gmodule_dep],
|
|
+ link_args: '-lpython@PYTHON_VERSION@',
|
|
install: true,
|
|
install_dir: giscannerdir,
|
|
)
|
|
diff -uNr gobject-introspection/meson.build gobject-introspection.mod/meson.build
|
|
--- gobject-introspection/meson.build 2021-06-03 13:43:38.062569940 +0000
|
|
+++ gobject-introspection.mod/meson.build 2021-06-03 13:57:59.063038610 +0000
|
|
@@ -3,6 +3,7 @@
|
|
meson_version: '>= 0.58.2',
|
|
default_options: [
|
|
'warning_level=2',
|
|
+ 'c_link_args=-lpython@PYTHON_VERSION@',
|
|
'buildtype=debugoptimized',
|
|
],
|
|
)
|
|
@@ -157,9 +158,6 @@
|
|
libffi_dep = dependency('libffi',
|
|
fallback : ['libffi', 'ffi_dep'])
|
|
|
|
-# python headers
|
|
-cc.check_header('Python.h', dependencies: [python.dependency()], required: true)
|
|
-
|
|
# cairo
|
|
cairo_option = get_option('cairo')
|
|
if cc.get_id() == 'msvc'
|