This repository was archived by the owner on Feb 25, 2025. It is now read-only.
-
Couldn't load subscription status.
- Fork 6k
[web] Build multiple CanvasKit variants (using toolchain_args) #38448
Merged
Merged
Changes from all 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| # Copyright 2013 The Flutter Authors. All rights reserved. | ||
| # Use of this source code is governed by a BSD-style license that can be | ||
| # found in the LICENSE file. | ||
|
|
||
| import("//build/toolchain/wasm.gni") | ||
| import("canvaskit.gni") | ||
|
|
||
| if (build_canvaskit) { | ||
| # This toolchain is only to be used by canvaskit_group below. | ||
| wasm_toolchain("canvaskit") { | ||
| extra_toolchain_args = { | ||
| skia_use_icu = true | ||
| skia_use_client_icu = false | ||
| } | ||
| } | ||
|
|
||
| group("canvaskit_group") { | ||
| visibility = [ "//flutter/web_sdk:*" ] | ||
| public_deps = [ "//third_party/skia/modules/canvaskit(:canvaskit)" ] | ||
| } | ||
| } | ||
|
|
||
| if (build_canvaskit_chromium) { | ||
| # This toolchain is only to be used by canvaskit_chromium_group below. | ||
| wasm_toolchain("canvaskit_chromium") { | ||
| extra_toolchain_args = { | ||
| skia_use_icu = false | ||
| skia_use_client_icu = true | ||
| } | ||
| } | ||
|
|
||
| group("canvaskit_chromium_group") { | ||
| visibility = [ "//flutter/web_sdk:*" ] | ||
| public_deps = | ||
| [ "//third_party/skia/modules/canvaskit(:canvaskit_chromium)" ] | ||
| } | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # Copyright 2013 The Flutter Authors. All rights reserved. | ||
| # Use of this source code is governed by a BSD-style license that can be | ||
| # found in the LICENSE file. | ||
|
|
||
| declare_args() { | ||
| build_canvaskit = false | ||
| build_canvaskit_chromium = false | ||
| } |
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.
Uh oh!
There was an error while loading. Please reload this page.