cleaned more paths and seperated library types
This commit is contained in:
parent
3c990e2ac7
commit
4412b08a45
2 changed files with 8 additions and 4 deletions
|
@ -66,7 +66,7 @@ impl BuildRule {
|
||||||
|
|
||||||
let mut prerequisites: Vec<String> = Vec::new();
|
let mut prerequisites: Vec<String> = Vec::new();
|
||||||
|
|
||||||
prerequisites.push(String::from(path));
|
prerequisites.push((PathBuf::from(path)).clean().to_str().unwrap().to_string());
|
||||||
|
|
||||||
prerequisites.append(&mut BuildRule::get_headers_from_c_file(path, makefile));
|
prerequisites.append(&mut BuildRule::get_headers_from_c_file(path, makefile));
|
||||||
|
|
||||||
|
|
10
src/main.rs
10
src/main.rs
|
@ -21,12 +21,16 @@ struct Args {
|
||||||
#[arg(short, long)]
|
#[arg(short, long)]
|
||||||
run: bool,
|
run: bool,
|
||||||
|
|
||||||
/// Configure build rule to create a library rather than an executable (NYI)
|
/// Configure to build a statically linked library
|
||||||
#[arg(short, long)]
|
#[arg(short, long)]
|
||||||
library: bool,
|
static_library: bool,
|
||||||
|
|
||||||
|
/// Configure to build a dynamically linked library
|
||||||
|
#[arg(short, long)]
|
||||||
|
dynamic_library: bool,
|
||||||
|
|
||||||
/// Path to makefile
|
/// Path to makefile
|
||||||
#[arg(short, long, default_value = "./Makefile")]
|
#[arg(short, long, default_value = "Makefile")]
|
||||||
makefile: String,
|
makefile: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue