Generate CMake distribution in CD - #251
Conversation
almarklein
left a comment
There was a problem hiding this comment.
Thanks! This sounds like it would be useful, but (being mostly a Python dev) I cannot judge whether this approach is good practice or something like that.
Co-authored-by: Almar Klein <almar@almarklein.org>
…pu-native into feature-cmake-distribution
Co-authored-by: Almar Klein <almar@almarklein.org>
Co-authored-by: Almar Klein <almar@almarklein.org>
|
Oh thanks my bad! |
…pu-native into feature-cmake-distribution
|
This is open for a while even though this is about finished. I think this needs a round of review from someone with more experience (than me) in build systems. cc @rajveermalviya |
|
Is there something I can do to help push this along? |
|
@rajveermalviya Any chance I can help get this wrapped up for the next release? |
|
(Apologies for missing this) Tbh instead of this, I would prefer a setup where user can clone the repo (or github's download zip) to a directory and then import that directory via Then the But not really sure how emscripten would fit in that. |
|
I agree actually, not my topmost priority at the moment but I'll work on this eventually! |
|
|
|
I have a working prototype of this locally now. I'll need #359 to land and then I can start on a series of PRs that get us to (what I hope is) a good place. |
|
We definitely still want this, but we dropped the ball on reviews. I'm going to close this, we definitely want integration with cmake somehow. |
Hello,
I am trying to make the integration of the precompiled binaries in a CMake-based project as easy and portable as possible for my WebGPU C++ guide and I came up with a solution that satisfies me:
webgpuCMake target to link like any library and that manages the pre-compiled binariesWEBGPU_BACKEND_WGPUto distinguish this distribution for the Dawn-based alternative that I also provideCurrently I point my readers to my WebGPU-distribution repository but I think this is something that would be worth making available directly in the release of
wgpu-native.This PR adds to the CD process the generation of a distribution of WebGPU that can be simply copied in a CMake project and integrated with
add_subdirectory(webgpu). More info to be found in distribution/REAMD.md.This is something that I am going to also discuss with Dawn so that ideally we end up with a common way of packaging binaries for CMake. I'll be happy to discuss the details and adapt to as many use cases as possible!