mirror of
https://github.com/italicsjenga/ash-molten.git
synced 2024-12-23 13:21:30 +11:00
Pin MoltenVK version to v1.0.37 (#5)
This commit is contained in:
parent
9f6c298703
commit
c2b15c989e
|
@ -1,7 +1,7 @@
|
|||
[package]
|
||||
name = "ash-molten"
|
||||
description = "Statically linked MoltenVK for Vulkan on Mac using Ash"
|
||||
version = "0.1.0"
|
||||
version = "0.2.0+37"
|
||||
authors = ["Embark <opensource@embark-studios.com>", "Maik Klein <maik.klein@embark-studios.com>"]
|
||||
edition = "2018"
|
||||
license = "MIT OR Apache-2.0"
|
||||
|
|
13
README.md
13
README.md
|
@ -45,9 +45,20 @@ You can run the example with `cargo run`.
|
|||
|
||||
### Features
|
||||
|
||||
`cargo build` will clone the newest master of [MoltenVK](https://github.com/KhronosGroup/MoltenVK) compile and statically link it with your application.
|
||||
`cargo build` will clone a specific release of [MoltenVK](https://github.com/KhronosGroup/MoltenVK) compile and statically link it with your application.
|
||||
|
||||
If you want to compile [MoltenVK](https://github.com/KhronosGroup/MoltenVK) yourself, you can use the `external` feature. `cargo build --features external` requires `libMoltenVK` to be visible (`LD_LIBRARY_PATH`).
|
||||
|
||||
### How to update
|
||||
|
||||
To update the version of [MoltenVK](https://github.com/KhronosGroup/MoltenVK) uses, change the following:
|
||||
|
||||
- In `build.rs`, change `let tag = "v1.0.37"` to the new [MoltenVK release](https://github.com/KhronosGroup/MoltenVK/releases) tag name
|
||||
- Update the crate version in `Cargo.toml`
|
||||
- Bump the patch version
|
||||
- Set the version metadata to the MoltenVK release.
|
||||
- E.g. `0.2.0+37` -> `0.2.1+38`.
|
||||
|
||||
## Contributing
|
||||
|
||||
We welcome community contributions to this project.
|
||||
|
|
11
build.rs
11
build.rs
|
@ -28,8 +28,11 @@ mod mac {
|
|||
},
|
||||
};
|
||||
|
||||
let checkout_dir =
|
||||
Path::new(&std::env::var("OUT_DIR").expect("Couldn't find OUT_DIR")).join("MoltenVK");
|
||||
// MoltenVK git tagged release to use
|
||||
let tag = "v1.0.37";
|
||||
|
||||
let checkout_dir = Path::new(&std::env::var("OUT_DIR").expect("Couldn't find OUT_DIR"))
|
||||
.join(format!("MoltenVK-{}", tag));
|
||||
|
||||
let exit = Arc::new(AtomicBool::new(false));
|
||||
let wants_exit = exit.clone();
|
||||
|
@ -59,6 +62,10 @@ mod mac {
|
|||
} else {
|
||||
Command::new("git")
|
||||
.arg("clone")
|
||||
.arg("--branch")
|
||||
.arg(tag.to_owned())
|
||||
.arg("--depth")
|
||||
.arg("1")
|
||||
.arg("https://github.com/KhronosGroup/MoltenVK.git")
|
||||
.arg(&checkout_dir)
|
||||
.spawn()
|
||||
|
|
Loading…
Reference in a new issue