mirror of
https://github.com/hexedtech/codemp-intellij.git
synced 2024-11-21 14:44:49 +01:00
fix: don't use explicit dir separator in buildscript
This commit is contained in:
parent
367bd0390a
commit
38870f5670
1 changed files with 4 additions and 5 deletions
9
build.rs
9
build.rs
|
@ -9,7 +9,9 @@ fn main() {
|
||||||
let out_dir = Path::new(&out_dir_var);
|
let out_dir = Path::new(&out_dir_var);
|
||||||
let generated_glue_file = out_dir.join("generated_glue.in");
|
let generated_glue_file = out_dir.join("generated_glue.in");
|
||||||
|
|
||||||
let src_dir = Path::new("src/main/rust/");
|
let src_dir = Path::new("src")
|
||||||
|
.join("main")
|
||||||
|
.join("rust");
|
||||||
let glue_file = src_dir.join("glue.in");
|
let glue_file = src_dir.join("glue.in");
|
||||||
|
|
||||||
RifgenGenerator::new(TypeCases::CamelCase,Language::Java, vec!(src_dir))
|
RifgenGenerator::new(TypeCases::CamelCase,Language::Java, vec!(src_dir))
|
||||||
|
@ -39,8 +41,5 @@ fn main() {
|
||||||
out_dir.join("glue.rs"),
|
out_dir.join("glue.rs"),
|
||||||
);
|
);
|
||||||
|
|
||||||
println!(
|
println!("cargo:rerun-if-changed={}", generated_glue_file.display());
|
||||||
"cargo:rerun-if-changed={}",
|
|
||||||
Path::new("src/main").join(&generated_glue_file).display()
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue