~lattis/muon

d37055a6a1ec0c86cc068460357c234fdaf0f87d — Stone Tickle 1 year, 7 months ago 609d630
implement meson.backend()
1 files changed, 12 insertions(+), 0 deletions(-)

M src/functions/meson.c
M src/functions/meson.c => src/functions/meson.c +12 -0
@@ 120,6 120,17 @@ func_meson_is_subproject(struct workspace *wk, obj _, uint32_t args_node, obj *r
}

static bool
func_meson_backend(struct workspace *wk, obj _, uint32_t args_node, obj *res)
{
	if (!interp_args(wk, args_node, NULL, NULL, NULL)) {
		return false;
	}

	*res = make_str(wk, "ninja");
	return true;
}

static bool
func_meson_override_dependency(struct workspace *wk, obj _, uint32_t args_node, obj *res)
{
	LOG_W("TODO: meson.override_dependency");


@@ 139,5 150,6 @@ const struct func_impl_name impl_tbl_meson[] = {
	{ "global_build_root", func_meson_global_build_root },
	{ "is_subproject", func_meson_is_subproject },
	{ "override_dependency", func_meson_override_dependency },
	{ "backend", func_meson_backend },
	{ NULL, NULL },
};