mirror of
https://github.com/lisk77/comet.git
synced 2025-10-23 21:38:50 +00:00
fix: build.rs was not correct.
This commit is contained in:
parent
ae50603703
commit
7db78374b2
1 changed files with 0 additions and 8 deletions
8
build.rs
8
build.rs
|
@ -6,23 +6,15 @@ use std::env;
|
|||
|
||||
fn main() -> Result<()> {
|
||||
// This tells cargo to rerun this script if something in /resources/ changes.
|
||||
println!("cargo:rerun-if-changed=resources/materials/*");
|
||||
println!("cargo:rerun-if-changed=resources/objects/*");
|
||||
println!("cargo:rerun-if-changed=resources/textures/*");
|
||||
println!("cargo:rerun-if-changed=resources/shaders/*");
|
||||
println!("cargo:rerun-if-changed=resources/data/*");
|
||||
println!("cargo:rerun-if-changed=resources/sounds/*");
|
||||
|
||||
let out_dir = env::var("OUT_DIR")?;
|
||||
let mut copy_options = CopyOptions::new();
|
||||
copy_options.overwrite = true;
|
||||
let mut paths_to_copy = Vec::new();
|
||||
paths_to_copy.push("resources/materials/");
|
||||
paths_to_copy.push("resources/objects/");
|
||||
paths_to_copy.push("resources/textures/");
|
||||
paths_to_copy.push("resources/shaders/");
|
||||
paths_to_copy.push("resources/data/");
|
||||
paths_to_copy.push("resources/sounds/");
|
||||
|
||||
copy_items(&paths_to_copy, out_dir, ©_options)?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue