Skip to content

Commit

Permalink
experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxython committed Jan 4, 2024
1 parent 980ef1e commit 4b982d7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gpkg/gobject-introspection/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,12 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
"

termux_step_pre_configure() {
TERMUX_PKG_VERSION=. termux_setup_gir
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" -Dgi_cross_binary_wrapper=$GI_CROSS_LAUNCHER"
unset GI_CROSS_LAUNCHER
if [ "$TERMUX_ON_DEVICE_BUILD" = "false" ]; then
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" -Dgi_cross_use_prebuilt_gi=true"
fi

CPPFLAGS+="-I$TERMUX_PREFIX/include/python${TERMUX_PYTHON_VERSION} -I$TERMUX_PREFIX/include/python${TERMUX_PYTHON_VERSION}/cpython"
}
15 changes: 15 additions & 0 deletions gpkg/gobject-introspection/meson.build.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
--- a/meson.build
+++ b/meson.build
@@ -251,9 +249,9 @@
pkgconfig_variables = [
'datadir=' + '${prefix}' / get_option('datadir'),
'bindir=' + '${prefix}' / get_option('bindir'),
- 'g_ir_scanner=${bindir}/g-ir-scanner',
- 'g_ir_compiler=${bindir}/g-ir-compiler@0@'.format(exe_ext),
- 'g_ir_generate=${bindir}/g-ir-generate@0@'.format(exe_ext),
+ 'g_ir_scanner=g-ir-scanner',
+ 'g_ir_compiler=g-ir-compiler@0@'.format(exe_ext),
+ 'g_ir_generate=g-ir-generate@0@'.format(exe_ext),
'gidatadir=${datadir}/gobject-introspection-1.0',
'girdir=' + gir_dir_pc_prefix / 'gir-1.0',
'typelibdir=${libdir}/girepository-1.0',

0 comments on commit 4b982d7

Please sign in to comment.