eliemichel / WebGPU-distribution

Distributions of WebGPU for native and web development, easy to integrate and interchangeable.
MIT License
155 stars 27 forks source link

How can dawn be linked statically? #34

Open anchpop opened 5 days ago

anchpop commented 5 days ago

It can be nice to have a self-contained executable and not have to worry about dynamic libraries. But dawn seems to be linked dynamically in the default configuration. I did some poking around but couldn't figure it out on my own :(

eliemichel commented 5 days ago

This is one of the reasons why the guide and the main branch of this repo still point to a not-so-recent version of Dawn. This was reported upstream because developers changed the build setup, making static linking a bit hard.

eliemichel commented 5 days ago

BTW I just added a proper release to mark the version of this distribution repo that is currently in use in the guide: v0.2.0.

anchpop commented 4 days ago

Ah, good to know I wasn't going crazy and missing something obvious! Thanks for creating the release too