mirror of
https://git.sr.ht/~lattis/muon
synced 2026-01-31 03:45:53 +00:00
- use NINJA from environment if available - if samurai=enabled but we already called samu_main once, use `muon samu` as NINJA.
20 lines
425 B
C
20 lines
425 B
C
/*
|
|
* SPDX-FileCopyrightText: Stone Tickle <lattis@mochiro.moe>
|
|
* SPDX-License-Identifier: GPL-3.0-only
|
|
*/
|
|
|
|
#ifndef MUON_BACKEND_NINJA_H
|
|
#define MUON_BACKEND_NINJA_H
|
|
|
|
#include "lang/workspace.h"
|
|
|
|
struct write_tgt_ctx {
|
|
FILE *out;
|
|
const struct project *proj;
|
|
bool wrote_default;
|
|
};
|
|
|
|
bool ninja_write_all(struct workspace *wk);
|
|
int ninja_run(struct workspace *wk, obj args, const char *chdir, const char *capture);
|
|
#endif
|