~starkingdoms/starkingdoms

ref: ea9593d36e353331b9ad3d7b431cb9bc83397cff starkingdoms/spacetime_rs/src/configure/mod.rs -rw-r--r-- 381 bytes
ea9593d3 — core debugging prints 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::fs::File;
use std::io;
use std::path::PathBuf;
use crate::ninja::NinjaWriter;

pub mod asset;
pub mod client;
pub mod rust;

pub fn create_writer(root: &PathBuf) -> Result<NinjaWriter<File>, io::Error> {
    let mut w = NinjaWriter::new(File::create(root.join("build.ninja"))?);
    w.comment("Generated by spacetime")?;
    w.comment("Do not edit manually")?;
    Ok(w)
}