Skip to content

Commit

Permalink
Only check for renderer files if we are in debug mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
Frodo45127 committed Feb 16, 2024
1 parent f20187a commit 7706f65
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions rpfm_ui/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,18 @@ fn main() {
let assets_path = "./../assets/";
DirBuilder::new().recursive(true).create(assets_path).unwrap();

// TODO: unhardcode this path once the folder is moved to a 3rdparty subrepo.
let renderer_path = "./../../QtRenderingWidget/";
println!("cargo:rerun-if-changed={}", renderer_path);

println!("cargo:rustc-link-lib=dylib=ImportExport");
println!("cargo:rustc-link-lib=dylib=Rldx");
println!("cargo:rustc-link-lib=dylib=QtRenderingWidget");

// This compiles the model renderer and related libs. Only in debug mode, as on releases we may not have access to the source code,
// so we use precompiled binaries instead.
if cfg!(debug_assertions) {

// TODO: unhardcode this path once the folder is moved to a 3rdparty subrepo.
let renderer_path = "./../../QtRenderingWidget/";
println!("cargo:rerun-if-changed={}", renderer_path);

match Command::new("msbuild")
.arg("./QtRenderingWidget_RPFM.sln")
.arg("-m") // Enable multithread build.
Expand Down

0 comments on commit 7706f65

Please sign in to comment.