feat(initial): added portable mfem build system

This commit is contained in:
2026-09-05 07:11:05 -04:00
commit 6a54f2625e
49 changed files with 4344 additions and 0 deletions

41
pyproject.toml Normal file
View File

@@ -0,0 +1,41 @@
[build-system]
build-backend = "mesonpy"
requires = [
"meson-python>=0.20",
"meson>=1.9.1",
"ninja>=1.11",
"cmake>=3.24",
"patchelf>=0.17; sys_platform == 'linux'",
]
[project]
name = "meson-mfem-template"
dynamic = ["version"]
description = "Portable Meson source bundle and nanobind validation module for MFEM"
readme = "README.md"
requires-python = ">=3.10"
license = "MIT"
license-files = ["LICENSE"]
[tool.meson-python]
allow-windows-internal-shared-libs = true
[tool.meson-python.args]
setup = [
"-Dbuildtype=release",
"-Dallow_preinstalled=false",
"-Dfeature_profile=portable",
"-Dbuild_python=true",
"-Dbuild_examples=false",
"-Dbuild_tests=false",
"-Dinstall_mfem=true",
"-Dpython_install_native=true",
"-Dmfem_openmp=disabled",
"-Dmfem_cuda=disabled",
"-Dmfem_hip=disabled",
"--force-fallback-for=nanobind,robin-map",
]
install = [
"--tags=python-runtime,python-native",
"--skip-subprojects",
]