Small Changes to Aid in Host Packaging #9
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.
Note
This PR builds ontop of #7 & #8 , and as a result the diff looks massive because of the enumerations being copied on the windows pr branch along with containing all the windows code.
I recommend just viewing the changes at: f8d995e...9c9227a until the windows PR gets merged.
This way you see the small ~100 line pr.
This makes some small changes to the binary name to make it easier to find our specific GLSL compiler when in a packaged environment. Specifically for any artifact that can be the same as a host artifact (e.g. static libraries
.a, binaries that run on the host.exe/no file extension, etc.) we prepend "cafe-" to the front. To make it clear that it is for Cafe. And we don't attempt to use a host glsl compiler from regular mesa or something.RPL's/RPX's share the same name, notably because they can't really be mixed with anything other than Cafe. And also I wasn't fully sure if
exports.defname would support a-.I also added a simple CMake pkg-config file, so if you package the binary + cmake file (like I do), you can easily just
FetchContentthe URL, and thenFindPackage(CafeGLSL)and it all just works ™️. I mainly did this because Devkitpro (I imagine the toolchain pretty much everyone would use), supports CMake/Make, and for Make there's really no pkg-config esque file that would be helpful. So adding in compat for CMake seemed to make sense.