skia2/modules
Kevin Lubick 888d4efa77 [canvaskit] Add Freetype/Fonts to Bazel Build
This re-works src/ports/BUILD.bazel to work like our other
BUILD files, i.e. one rule "srcs" that brings in the necessary
private filegroups.

To work around an abort with LLVM [1], we have to go back to an
earlier version of emscripten (temporarily?).

Future work should look at using transitions [2] to allow various
executables (e.g. CanvasKit, DM) to set their own set of Bazel
flags, w/o the build invokers having to specify them.

These transitions might be able to handle more complex cases
that we currently use if statements in GN to deal with.

The Freetype build rule was created by taking the BUILD.gn
rule, adding in all the sources listed there and then playing
compile-whack-a-mole to add in all the headers and included
.c files.

Suggested Review Order:
 - third_party/BUILD.bazel to see freetype build rules
 - bazel/common_config_settings/ to see treatment of fontmgr
   like codecs (many possible) and fontmgr_factory (only one).
 - src/ports/BUILD.bazel
 - BUILD.bazel
 - modules/canvaskit/BUILD.bazel. Take note of the gen_rule that
   calls tools/embed_resources.py to produce the .cpp file
   containing the embedded font data.
 - Everything else.

[1] https://github.com/emscripten-core/emscripten/issues/15528
[2] https://github.com/bazelbuild/examples/tree/main/rules/starlark_configurations/cc_binary_selectable_copts
Bug: skia:12541
Change-Id: I08dab82a901d80507007b354ca20cbfad2c2388f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/471636
Reviewed-by: Ben Wagner <bungeman@google.com>
Reviewed-by: Leandro Lovisolo <lovisolo@google.com>
2021-11-17 13:06:35 +00:00
..
androidkit [JetSki] get TypeFace from FontMgr 2021-10-20 19:33:30 +00:00
audioplayer implement SkAudioPLayer for Android 2020-12-15 00:12:48 +00:00
canvaskit [canvaskit] Add Freetype/Fonts to Bazel Build 2021-11-17 13:06:35 +00:00
particles Replace fSkVMDebugTrace program setting with SkVMDebugInfo. 2021-11-12 14:13:14 +00:00
pathkit [infra] Deduplicate serve.py 2021-10-12 11:42:50 +00:00
skottie add skottie support for Bulge ADBE effect 2021-11-04 21:05:22 +00:00
skparagraph Flutter RTL/LTR positioning fix 2021-11-16 20:23:05 +00:00
skplaintexteditor Reland "Add format-specifier warnings to SkDebugf." 2021-06-25 17:57:43 +00:00
skresources Export some classes callers may use for Skottie. 2021-10-13 01:35:54 +00:00
sksg Pass CTM to path effects (experimental) 2021-07-13 18:42:55 +00:00
skshaper Support building on clang with -std=c++14 but no C++17 extension warning. 2021-10-12 16:34:30 +00:00
skunicode Reland "Reland "Small changes for SkText that are not in experimental directory"" 2021-09-15 15:31:14 +00:00
svg Fix Clang warning -Wbitwise-instead-of-logical. 2021-10-26 21:35:37 +00:00