| 35 | } |
| 36 | |
| 37 | func (m meson) CheckTools() []string { |
| 38 | // Start with build_tools from port.toml |
| 39 | tools := slices.Clone(m.BuildConfig.BuildTools) |
| 40 | |
| 41 | // Add default tools |
| 42 | tools = append(tools, "ninja", "cmake") |
| 43 | |
| 44 | // Add build tools dynamically. |
| 45 | switch runtime.GOOS { |
| 46 | case "windows": |
| 47 | tools = append(tools, |
| 48 | "python3", |
| 49 | "python3:"+m.buildSystem, |
| 50 | ) |
| 51 | case "linux": |
| 52 | tools = append(tools, "python3:"+m.buildSystem) |
| 53 | } |
| 54 | |
| 55 | return tools |
| 56 | } |
| 57 | |
| 58 | func (m *meson) preConfigure() error { |
| 59 | toolchain := m.Ctx.Platform().GetToolchain() |