acdc283404
This adds an Init() which should be called before any resources are loaded or GMs/Tests are called. This also adds a little helper in compile.sh for building only a single GM, which can make local development faster given the fact that emsdk doesn't do its final compilation/linking in parallel. Bug: skia:10812 Change-Id: I1a8932549b9ae951c153c0d49927bdc933c29657 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/329358 Reviewed-by: Ben Wagner <bungeman@google.com>
26 lines
547 B
Plaintext
26 lines
547 B
Plaintext
# Copyright 2020 Google Inc.
|
|
#
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
component("viewer_wasm") {
|
|
testonly = true
|
|
include_dirs = [ "../.." ]
|
|
sources = [
|
|
"../../tools/viewer/SKPSlide.cpp",
|
|
"../../tools/viewer/SampleSlide.cpp",
|
|
"../../tools/viewer/SvgSlide.cpp",
|
|
]
|
|
deps = [ "../..:samples" ]
|
|
}
|
|
|
|
component("gm_wasm") {
|
|
testonly = true
|
|
include_dirs = [ "../.." ]
|
|
deps = [
|
|
"../..:hash_and_encode",
|
|
"../..:tool_utils",
|
|
"../../modules/svg:svg",
|
|
]
|
|
}
|