muon/include/backend/ninja.h
Stone Tickle 4a5aa18e45
add more flexibility to ninja command detection
- use NINJA from environment if available
- if samurai=enabled but we already called samu_main once, use `muon
  samu` as NINJA.
2022-11-05 13:13:48 -04:00

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