-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build various target libraries from source #7
Merged
Merged
Changes from 3 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
c0fd726
Build i686-pc-windows-msvc libraries from source
GrygrFlzr e4ac0b5
Follow cargo publishing standards
GrygrFlzr 9ee8a3c
Skip build process for prebuilt libraries
GrygrFlzr dad973a
Control building from feature flag
GrygrFlzr 4cdfa02
Fixed submodule
GrygrFlzr 01095f5
Use proper path building instead of unix slash
GrygrFlzr 797835c
Better panic message for end user
GrygrFlzr 4978dfd
Rewrite builder to handle other potential build targets
GrygrFlzr 81f73a2
Add support for Windows GNU toolchains
GrygrFlzr f733007
Unnecessary clone
GrygrFlzr 73a7b58
Implicit return
GrygrFlzr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
[target.x86_64-pc-windows-msvc.glslang] | ||
rustc-link-search = ["build/windows"] | ||
rustc-link-lib = [ | ||
"HLSL.glsltospirv", | ||
"OGLCompiler.glsltospirv", | ||
"OSDependent.glsltospirv", | ||
"SPIRV.glsltospirv", | ||
"SPVRemapper.glsltospirv", | ||
"glslang.glsltospirv" | ||
] | ||
|
||
[target.x86_64-unknown-linux-gnu.glslang] | ||
rustc-link-search = ["build/linux"] | ||
rustc-link-lib = [ | ||
"HLSL.glsltospirv", | ||
"OGLCompiler.glsltospirv", | ||
"OSDependent.glsltospirv", | ||
"SPIRV.glsltospirv", | ||
"SPVRemapper.glsltospirv", | ||
"glslang.glsltospirv", | ||
# linux and macOS-specific libraries | ||
"SPIRV-Tools-opt.glsltospirv", | ||
"SPIRV-Tools.glsltospirv" | ||
] | ||
|
||
[target.x86_64-apple-darwin.glslang] | ||
rustc-link-search = ["build/osx"] | ||
rustc-link-lib = [ | ||
"HLSL.glsltospirv", | ||
"OGLCompiler.glsltospirv", | ||
"OSDependent.glsltospirv", | ||
"SPIRV.glsltospirv", | ||
"SPVRemapper.glsltospirv", | ||
"glslang.glsltospirv", | ||
# linux and macOS-specific libraries | ||
"SPIRV-Tools-opt.glsltospirv", | ||
"SPIRV-Tools.glsltospirv" | ||
] | ||
|
||
[target.aarch64-linux-android.glslang] | ||
rustc-link-search = ["build/android-arm64-v8a"] | ||
rustc-link-lib = [ | ||
"HLSL.glsltospirv", | ||
"OGLCompiler.glsltospirv", | ||
"OSDependent.glsltospirv", | ||
"SPIRV.glsltospirv", | ||
"SPVRemapper.glsltospirv", | ||
"glslang.glsltospirv", | ||
# android-specific libraries | ||
"c++_shared" | ||
] | ||
|
||
[target.armv7-linux-androideabi.glslang] | ||
rustc-link-search = ["build/android-armeabi-v7a"] | ||
rustc-link-lib = [ | ||
"HLSL.glsltospirv", | ||
"OGLCompiler.glsltospirv", | ||
"OSDependent.glsltospirv", | ||
"SPIRV.glsltospirv", | ||
"SPVRemapper.glsltospirv", | ||
"glslang.glsltospirv", | ||
# android-specific libraries | ||
"c++_shared" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
[package] | ||
name = "bevy-glsl-to-spirv" | ||
version = "0.2.0" | ||
authors = ["Pierre Krieger <[email protected]>", "The vulkano contributors", "Carter Anderson <[email protected]>", "Nicholas Rishel <[email protected]>"] | ||
version = "0.2.2" | ||
authors = ["Pierre Krieger <[email protected]>", "The vulkano contributors", "Carter Anderson <[email protected]>", "Nicholas Rishel <[email protected]>", "Martin Krisnanto Putra <[email protected]>"] | ||
description = "Deprecated. This crate is a temporary measure until native rust shader compilation like https://github.com/gfx-rs/naga lands." | ||
repository = "https://github.com/cart/glsl-to-spirv" | ||
license = "MIT/Apache-2.0" | ||
build = "build/build.rs" | ||
categories = ["rendering::graphics-api"] | ||
edition = "2018" | ||
links = "glslang" | ||
|
||
[build-dependencies] | ||
cmake = "0.1.45" | ||
GrygrFlzr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
cc = { version = "1.0.66", features = ["parallel"] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This only applies when directly compiling this crate. It doesn't have any effect when using this crate as a dependency unfortunately.
.cargo/config.toml
is only read for the directory from which cargo was invoked, parent dirs and the home dir, not from arbitrary dependencies.