skia2/third_party
Kevin Lubick 9cb74e9079 [bazel] Compile gms for wasm and WebGL
PS 1 is re-generating existing BUILD.bazel files
PS 2 is generating BUILD.bazel files for tests/gms
PS 3+ makes modifications to build all of the gms and tests.

It is recommended to view this CL with just a diff between
PS 2 and the end, due to the large amount of generated changes
in PS 1 and 2.

We make a filegroup for the gms and tests because they need
to be compiled as one large blob in order for the registries
to work. Maybe in the future we will break these up, but at least
for WASM/JS, the overhead of starting a browser for each new
test would likely grind things to a halt, so we just group them
all together for now. It's also the most similar to what we
currently do.

In gm/BUILD.bazel and tests/BUILD.bazel, we add a cc_library
that encapsulates all of the deps of the tests, so we can
easily include that the build. These were discovered via
trial and error, not anything automatic or systematic.

The is_skia_dev_build config_setting is very similar to the
GN equivalent from which it was based.

The list of gms and tests to skip (e.g. which are incompatible
with WASM) was determined by building the wasm bundle:

modules/canvaskit$ make bazel_gms_release
tools/run-wasm-gm-tests$ make run_local_debug
# Don't forget to click the button on the screen after the
# browser loads

This way of invoking the tests will be replace soon with
`bazel test <something>`. As such, I didn't bother fully
documenting the current way.

Suggested review order:
 - modules/canvaskit/BUILD.bazel taking note that we always
   use profiling-funcs to make the stacktraces human readable.
 - gm/BUILD.bazel and tests/BUILD.bazel to see the lists of
   gms/tests. Notice the tests are roughly partitioned because
   we don't support things like vulkan/PDF in the wasm build
   and we will want a way to not build certain tests for
   certain configurations
 - tools/* noting some of the cc_libraries added to make
   dependencies easier to add when needed.
 - All other files.

Change-Id: I43059cd93c28af1c4c12b93d6ebd9c46a12d381f
Bug: skia:12541
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/506256
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
2022-02-09 18:56:17 +00:00
..
angle2 Port to ANGLE's GN files 2020-09-11 15:22:34 +00:00
brotli [canvaskit] Add support for woff2 fonts 2020-11-10 15:07:26 +00:00
cpu-features reformat GN files 2020-04-01 23:23:03 +00:00
d3d12allocator Add AMD allocator to D3D12 backend. 2020-09-23 21:22:52 +00:00
dng_sdk Separate general defaults from Skia defaults 2021-03-22 15:30:56 +00:00
etc1 Update etc1.cpp. 2020-12-16 17:57:26 +00:00
expat Add LICENSE file to third_party/expat/include/expat_config/ 2021-05-27 18:15:18 +00:00
freetype2 Quote things in roll-freetype.sh. 2022-01-25 16:17:06 +00:00
harfbuzz Roll HarfBuzz from 31607897 to a8b7f188 (180 commits) 2022-01-24 19:40:15 +00:00
highway Add MVP implementation of JPEGXL decoder. 2022-02-02 15:17:14 +00:00
icu Reland "Experimental ICU runtime linking" 2021-07-27 19:51:31 +00:00
imgui Revert "Spruce up SkSL slide with a much nicer editor" 2022-01-07 15:56:16 +00:00
libjpeg-turbo Update version of libjpeg-turbo used by Skia's test infra 2021-05-04 21:49:45 +00:00
libjxl Add MVP implementation of JPEGXL decoder. 2022-02-02 15:17:14 +00:00
libmicrohttpd
libpng reformat GN files 2020-04-01 23:23:03 +00:00
libwebp update libwebp to v1.2.1 2021-08-16 13:57:40 +00:00
lua
native_app_glue reformat GN files 2020-04-01 23:23:03 +00:00
oboe Separate general defaults from Skia defaults 2021-03-22 15:30:56 +00:00
piex
sfntly reformat GN files 2020-04-01 23:23:03 +00:00
skcms Roll skcms from 3fa993c258a9 to 30c8e303800c (2 revisions) 2022-01-22 00:10:20 +00:00
spirv-cross Roll Dawn and add dependencies 2020-03-30 18:52:06 +00:00
vulkanmemoryallocator Add flag that can be used to disable std::shared_mutex use in VMA. 2021-11-12 01:35:08 +00:00
wuffs Inclusive language 2020-07-24 13:33:53 +00:00
zlib Separate general defaults from Skia defaults 2021-03-22 15:30:56 +00:00
BUILD.bazel [bazel] Compile gms for wasm and WebGL 2022-02-09 18:56:17 +00:00
BUILD.gn
file_map_for_bazel.json [bazel] Compile gms for wasm and WebGL 2022-02-09 18:56:17 +00:00
README
third_party.gni Separate general defaults from Skia defaults 2021-03-22 15:30:56 +00:00

The third_party directory contains a set of dependencies from outside sources
that are needed to build various components and tools within Skia.  

Some of these dependencies reside within the Skia repo, while others are pulled 
from other repositories and placed in the third_party/externals directory
during build. These external dependencies are defined in a DEPS file.

Products in third_party are subject to their own respective license terms.  The
license for each project should be included in the source itself via a license
header or file.  If the source itself does not include a license header or file,
create a README that refers to reliable documentation of the project's license
terms on the web.