This repository was archived by the owner on Feb 25, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6k
[web] Build multiple CanvasKit variants (using toolchain_args) #38448
Merged
Merged
Changes from 4 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
0b6486f
[web] New gn for building CanvasKit
mdebbar 251e970
Merge branch 'main' into ck_gn
mdebbar fbcaf7d
Use toolchain_args to override CanvasKit gn args
mdebbar bb376cc
Use correct path for the generated canvaskit files
mdebbar 533864a
Put toolchain close to target
mdebbar b59bf8c
remove extra toolchains
mdebbar 0572533
remove extra import
mdebbar ea0e192
add canvaskit_lite to archive
mdebbar 8783c22
fix local canvaskit path in tests
mdebbar 0d34f98
Merge branch 'main' into ck_gn
mdebbar 5cb2d24
add some guards using visibility and asserts
mdebbar 098ee39
renames
mdebbar 6551b11
Merge branch 'main' into ck_gn
mdebbar 7fe057b
formatting
mdebbar 3ea622c
rename mistake
mdebbar 3ce4045
Add github issue to the TODO
mdebbar 59e7fc8
Update buildroot sha
mdebbar f681283
Merge branch 'main' into ck_gn
mdebbar b15ae6e
clang-tidy error
mdebbar 27434d0
Merge branch 'main' into ck_gn
mdebbar f2f0ba0
skip canvaskit targets when not needed
mdebbar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would need to investigate more to make specific suggestions about how to guard the canvaskit toolchain definitions with visibility annotations or asserts, but one thing that will probably help in any case is putting the targets you want to build with those toolchains right next to the toolchain definitions, with comments saying not to use those toolchains for anything else.
So here, you'd depend on a
group
target, where thegroup
has a public_deps on//third_party/skia/...
, and thegroup
target is in the same file as the toolchain definitions.