aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/meson.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-05-19 18:24:07 +0900
committerOphestra <cat@gensokyo.uk>2026-05-19 18:24:07 +0900
commita770d62b9be4306846b7e1d8c0c94968be175f58 (patch)
treeaf5dea8fed5799f0e54fff56f7e481517263b6b5 /internal/rosa/meson.go
parentff44060763eedf385d9218cc5a93344b8bb04021 (diff)
internal/rosa/package: migrate meson
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/meson.go')
-rw-r--r--internal/rosa/meson.go64
1 files changed, 2 insertions, 62 deletions
diff --git a/internal/rosa/meson.go b/internal/rosa/meson.go
index 8f56ba81..737a727c 100644
--- a/internal/rosa/meson.go
+++ b/internal/rosa/meson.go
@@ -3,70 +3,10 @@ package rosa
import (
"slices"
"strings"
-
- "hakurei.app/internal/pkg"
)
-func (t Toolchain) newMeson() (pkg.Artifact, string) {
- const (
- version = "1.11.1"
- checksum = "uvILRxdopwc6Dy17UbIeClcQr0qHqyTaqyk1M9OqWKN9PwB9N6UVAiyN8kSSz3r2"
- )
- return t.NewPackage("meson", version, newFromGitHub(
- "mesonbuild/meson",
- version,
- checksum,
- ), &PackageAttr{
- Env: []string{
- "CMAKE_MAKE_PROGRAM=ninja",
- },
- }, &PipHelper{
- EnterSource: true,
- Check: `
-cd 'test cases'
-rm -rf \
- 'common/32 has header' \
- 'common/66 vcstag' \
- 'common/153 wrap file should not failed' \
- 'common/184 openmp' \
- 'common/189 check header' \
- 'linuxlike/6 subdir include order' \
- 'linuxlike/9 compiler checks with dependencies' \
- 'linuxlike/13 cmake dependency' \
- 'frameworks/15 llvm' \
- 'frameworks/29 blocks'
-cd ..
-
-python3 ./run_project_tests.py \
- -v \
- ` + jobsFlagE + ` \
- --failfast \
- --backend=ninja
-`,
- },
- PythonSetuptools,
- PkgConfig,
- CMake,
- Ninja,
- PythonPyTest,
- ), version
-}
-func init() {
- native.mustRegister(Toolchain.newMeson, &Metadata{
- Name: "meson",
- Description: "an open source build system",
- Website: "https://mesonbuild.com/",
-
- Dependencies: P{
- Python,
- PkgConfig,
- CMake,
- Ninja,
- },
-
- ID: 6472,
- })
-}
+// Meson is the meson package used by [MesonHelper].
+var Meson = H("meson")
// MesonHelper is the [Meson] build system helper.
type MesonHelper struct {