Package dawn artifacts/required files into xcframework for easier integration#13
Draft
SoylentGraham wants to merge 21 commits intohenrybetts:mainfrom
Draft
Package dawn artifacts/required files into xcframework for easier integration#13SoylentGraham wants to merge 21 commits intohenrybetts:mainfrom
SoylentGraham wants to merge 21 commits intohenrybetts:mainfrom
Conversation
Author
|
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 release henrybetts#17
Author
|
To get the right artifacts, after building via ninja (as per current instructions), I cannot find the correct artifacts... todo:
|
Author
|
Current setup is building a hardcoded path to Need to fix this |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
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