Skip to content

Commit

Permalink
wheel.mk: Add meson wheel compiling ability
Browse files Browse the repository at this point in the history
  • Loading branch information
th0ma7 committed Dec 2, 2024
1 parent d13479a commit 5a0e6df
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mk/crossenv/requirements-default.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ cryptography==43.0.3
Cython==3.0.11
flit==3.10.1
maturin==1.7.4
#meson-python==0.17.1
meson-python==0.17.1
msgpack==1.0.5
poetry==1.8.4
scikit-build==0.18.1
#scikit-build-core==0.10.7
scikit-build-core==0.10.7
setuptools-rust==1.10.2
setuptools-scm==8.1.0
typing_extensions==4.12.2
8 changes: 8 additions & 0 deletions mk/spksrc.wheel.mk
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ include ../../mk/spksrc.wheel-env.mk
## python wheel specific configurations
include ../../mk/spksrc.crossenv.mk

## meson specific configurations
include ../../mk/spksrc.cross-cmake-env.mk

## meson specific configurations
include ../../mk/spksrc.cross-meson-env.mk

##

ifeq ($(strip $(PRE_WHEEL_TARGET)),)
Expand Down Expand Up @@ -215,6 +221,7 @@ cross-compile-wheel-%:
fi ; \
$(MSG) \
_PYTHON_HOST_PLATFORM="$(TC_TARGET)" \
MESON_CROSS_FILE="$(MESON_TOOLCHAIN_WRK)" \
$(PIP_CROSSENV) \
$(PIP_WHEEL_ARGS_CROSSENV) \
$${pip_global_option} \
Expand All @@ -223,6 +230,7 @@ cross-compile-wheel-%:
$(REQUIREMENT) ; \
$(RUN) \
_PYTHON_HOST_PLATFORM="$(TC_TARGET)" \
MESON_CROSS_FILE="$(MESON_TOOLCHAIN_WRK)" \
$(PIP_CROSSENV) \
$(PIP_WHEEL_ARGS_CROSSENV) \
$${pip_global_option} \
Expand Down

0 comments on commit 5a0e6df

Please sign in to comment.