[canvaskit] Replace core build with profile build in npm
Change-Id: I22cbaf1ee6469444e0a272d8d894ccbccdcbd24c
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/343997
Reviewed-by: Yegor Jbanov <yjbanov@google.com>
diff --git a/modules/canvaskit/CHANGELOG.md b/modules/canvaskit/CHANGELOG.md
index 8af5c7f..a31d569 100644
--- a/modules/canvaskit/CHANGELOG.md
+++ b/modules/canvaskit/CHANGELOG.md
@@ -29,6 +29,9 @@
- The Canvas2D emulation layer always uses high quality image smoothing (this drastically
simplifies the underlying code).
- We now compile CanvasKit with emsdk 2.0.10 when testing and deploying to npm.
+ - Instead of shipping a "core" build to npm, we ship a "profiling" build, which is the same as
+ the main build, just with unmangled function calls and other debugging info useful for
+ determining where runtime is spent.
### Fixed
- `Canvas.drawPoints` correctly takes a flattened Array or TypedArray of points (as the
diff --git a/modules/canvaskit/Makefile b/modules/canvaskit/Makefile
index 4b76190..6f56afa 100644
--- a/modules/canvaskit/Makefile
+++ b/modules/canvaskit/Makefile
@@ -46,7 +46,6 @@
mkdir -p ./canvaskit/bin
cp ../../out/canvaskit_wasm_experimental_simd/canvaskit.js ./canvaskit/bin
cp ../../out/canvaskit_wasm_experimental_simd/canvaskit.wasm ./canvaskit/bin
- #cp ../../out/canvaskit_wasm_experimental_simd/canvaskit.wasm.map ./canvaskit/bin
debug_viewer:
# Does an incremental build where possible.
@@ -54,7 +53,6 @@
mkdir -p ./canvaskit/bin
cp ../../out/canvaskit_wasm_debug/canvaskit.js ./canvaskit/bin
cp ../../out/canvaskit_wasm_debug/canvaskit.wasm ./canvaskit/bin
- #cp ../../out/canvaskit_wasm_debug/canvaskit.wasm.map ./canvaskit/bin
profile:
./compile.sh profiling
@@ -71,10 +69,10 @@
cp ../../out/canvaskit_wasm/canvaskit.js ./canvaskit/bin
cp ../../out/canvaskit_wasm/canvaskit.wasm ./canvaskit/bin
- mkdir -p ./canvaskit/bin/core
- ./compile.sh release no_skottie no_particles no_pathops no_rt_shader no_font no_skp_serialization no_effects_deserialization
- cp ../../out/canvaskit_wasm/canvaskit.js ./canvaskit/bin/core
- cp ../../out/canvaskit_wasm/canvaskit.wasm ./canvaskit/bin/core
+ mkdir -p ./canvaskit/bin/profiling
+ ./compile.sh profiling no_skottie no_particles no_rt_shader no_alias_font no_effects_deserialization
+ cp ../../out/canvaskit_wasm_profile/canvaskit.js ./canvaskit/bin/profiling
+ cp ../../out/canvaskit_wasm_profile/canvaskit.wasm ./canvaskit/bin/profiling
gm_tests:
./compile_gm.sh