mirror of
https://github.com/italicsjenga/ash-molten.git
synced 2024-12-23 21:31:30 +11:00
Output messages to the log every 30 seconds when building MoltenVK
This commit is contained in:
parent
728d5e5f59
commit
f7a98644fc
8
build.rs
8
build.rs
|
@ -36,10 +36,14 @@ fn main() {
|
|||
}
|
||||
// The 'external' feature was not enabled. Molten will be built automaticaly.
|
||||
if !is_external_enabled() {
|
||||
std::process::Command::new("bash")
|
||||
let mut build = std::process::Command::new("bash")
|
||||
.arg("build_molten.sh")
|
||||
.status()
|
||||
.spawn()
|
||||
.expect("Unable to build molten");
|
||||
while build.try_wait().unwrap().is_none() {
|
||||
println!("Still building MoltenVK");
|
||||
std::thread::sleep(std::time::Duration::from_secs(30));
|
||||
}
|
||||
let project_dir =
|
||||
PathBuf::from(std::env::var("CARGO_MANIFEST_DIR").unwrap()).join("native");
|
||||
println!("cargo:rustc-link-search=native={}", project_dir.display());
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
git clone https://github.com/KhronosGroup/MoltenVK.git
|
||||
cd MoltenVK
|
||||
sh fetchDependencies
|
||||
xcodebuild -project "$(XCODE_PROJ)" -scheme "$(XCODE_SCHEME_BASE) (macOS only)"
|
||||
make macos
|
||||
cp Package/Release/MoltenVK/macOS/static/libMoltenVK.a ../native
|
||||
|
|
Loading…
Reference in a new issue