skia2/tools/fiddle
Kevin Lubick 6ba9f702ba [bazel] Try adding cc_binary rules that use generated rules
To make the atomic rules a bit easier to work with, in many
of the folders, this adds in cc_library rules to group
together the sources from that folder (and subfolders
where prudent). We only needs sources because those atoms
should have their headers as deps.

One issue that was pointed out is that there is currently
no way to restrict the inclusion of certain packages,
a la, `gn check`. For example, there is no mechanism from
stopping a dev from adding
#include "modules/canvaskit/WasmCommon.h"
to something in //src/core (except circular dependencies).
We can probably address that using Bazel's visibility
rules as needed:
https://docs.bazel.build/versions/main/visibility.html
https://docs.bazel.build/versions/main/be/functions.html#package_group

It is recommended to look at this CL patchset by patchset.
PS1: Update gazelle command to generate rules in more folders.
PS2: A few changes to make generation work better.
PS3: The result of running make generate in //bazel
PS4: Adding the rules to build sksllex, the simplest binary I
     could find in the Skia repo.
PS5: Adding the rules to build skdiff, a more complex binary.
     I tried a few approaches, but ended up gravitating back
     towards the layout where we have each folder/package
     group up the sources. I imagine at some point, we'll have
     skdiff depend on skia_core or something, which will
     have things like //src/core, //src/codecs, //src/pathops
     all bundled together.
PS7: Added in the groupings of sources, similar to what we had
     earlier. I liked these for readability. These helped fix
     up the //:skia_core build, and by extension, the CanvasKit
     build.

Change-Id: I3faa7c4e821c876b243617aacf0246efa524cbde
Bug: skia:12541
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/476219
Reviewed-by: Ben Wagner <bungeman@google.com>
Reviewed-by: Leandro Lovisolo <lovisolo@google.com>
2021-11-30 18:18:53 +00:00
..
.gitignore experimental/fiddle -> tools/fiddle 2016-04-18 11:50:07 -07:00
all_examples.cpp Change relative includes to be absolute 2021-11-22 17:03:26 +00:00
animate.sh [fiddle] Add simple animation support. 2017-04-19 18:46:52 +00:00
BUILD.bazel [bazel] Try adding cc_binary rules that use generated rules 2021-11-30 18:18:53 +00:00
documumentation_examples_map.txt Remove drawPatch/Vertices helpers that don't take SkBlendMode 2021-11-18 21:57:32 +00:00
draw.cpp Add flag to hide non-sampling imageshader factories 2020-12-08 20:33:23 +00:00
egl_context.cpp Add Context factories to GrDirectContext 2020-07-14 12:40:46 +00:00
examples.cpp rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
examples.h Reland "Add format-specifier warnings to SkDebugf." 2021-06-25 17:57:43 +00:00
fiddle_main.cpp Move sk_memset* from SkUtils to SkOpts 2021-11-03 17:03:21 +00:00
fiddle_main.h Spelling and capitalization fixes from GitHub PRs 2020-12-10 18:40:09 +00:00
make_all_examples_cpp.py Change relative includes to be absolute 2021-11-22 17:03:26 +00:00
null_context.cpp Add Context factories to GrDirectContext 2020-07-14 12:40:46 +00:00
parse-fiddle-output [fiddle] Report GL driver info. 2017-06-01 18:03:45 +00:00