- Notifications
You must be signed in to change notification settings - Fork7
Package dawn artifacts/required files into xcframework for easier integration#13
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
SoylentGraham commentedNov 6, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Currently xcode fails to Archive (for app store) any projects - not sure if this is related to my changes or not edit: same error when building |
…texture around instead of the view
…bgpu exe - the@rpath config is weirdly missing from xcode when in releasehenrybetts#17
SoylentGraham commentedNov 9, 2024
To get the right artifacts, after building via ninja (as per current instructions), I cannot find the correct artifacts... todo:
|
SoylentGraham commentedNov 12, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Current setup is building a hardcoded path to Need to fix this |
Uh oh!
There was an error while loading.Please reload this page.
Improvement
These changes to the package setup mean the
dylib, dawn headers, anddawn.jsonare all bundled into an.xcframeworkwhich SPM consumes quite nicely./usr/localetcxcframeworkpublicHeadersPathandwebgpu.hto generate the webgpu symbols (egWGPUBool)xcframeworkcan come from an URL (ie. github workflow -> release, and automate creation from dawn's own code)dylibinto any product of a project that requires it (currently the setup fails as thedylibisn't bundled with any projects)publicHeadersPathinCWebGPUand requirewebgpu.h(and ONLY this header)User Instructions
libwebgpu_dawn.dylibinclude/dawn.jsonSources/DawnNative/and then runcd Soruces/DawnNaive && ./CreateXCFramework.shSources/DawnNative/webgpu_dawn.xcframeworkTodo