netsuke-build 0.1.0-beta2

A YAML-powered Ninja/Jinja hybrid build system.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Shared test constructors for Ninja generation modules.

use crate::{
    ast::{Recipe, StringOrList},
    ir::Action,
};

/// Construct a command action with the stable default metadata used in tests.
pub(super) const fn command_action(command: StringOrList) -> Action {
    Action {
        recipe: Recipe::Command { command },
        description: None,
        depfile: None,
        deps_format: None,
        pool: None,
        restat: false,
    }
}