skia2/tools/sk_app
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
..
android [bazel] Try adding cc_binary rules that use generated rules 2021-11-30 18:18:53 +00:00
ios [bazel] Try adding cc_binary rules that use generated rules 2021-11-30 18:18:53 +00:00
mac [bazel] Try adding cc_binary rules that use generated rules 2021-11-30 18:18:53 +00:00
unix [bazel] Try adding cc_binary rules that use generated rules 2021-11-30 18:18:53 +00:00
win [bazel] Try adding cc_binary rules that use generated rules 2021-11-30 18:18:53 +00:00
Application.h
BUILD.bazel [bazel] Try adding cc_binary rules that use generated rules 2021-11-30 18:18:53 +00:00
CommandSet.cpp Include the SkTSort header only where it is used. 2020-07-14 14:19:06 +00:00
CommandSet.h tools/skui: put all enums in a common namespace 2019-08-29 15:39:32 +00:00
DawnWindowContext.cpp Fix usage of deprecated wgpu::TextureUsage::OutputAttachment 2021-05-17 14:42:30 +00:00
DawnWindowContext.h Update the sk_app WindowContext to hold a GrDirectContext 2020-07-10 18:27:03 +00:00
DisplayParams.h Hide binaryArchive use in Viewer behind a flag. 2020-11-25 17:27:47 +00:00
GLWindowContext.cpp Rename GrContextPriv to GrDirectContextPriv 2020-10-14 16:46:01 +00:00
GLWindowContext.h Update the sk_app WindowContext to hold a GrDirectContext 2020-07-10 18:27:03 +00:00
GraphiteMetalWindowContext.h [graphite] Add support to Mac Viewer. 2021-09-30 21:38:25 +00:00
GraphiteMetalWindowContext.mm [graphite] Add support to Mac Viewer. 2021-09-30 21:38:25 +00:00
MetalWindowContext.h Fix ODR violation in Metal code. 2021-10-20 21:33:32 +00:00
MetalWindowContext.mm Reland "Add new GrSurfaceInfo class and related backend structs." 2021-09-20 20:44:53 +00:00
RasterWindowContext.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
VulkanWindowContext.cpp VulkanWindowContext uses sample-able swap VkImages when available. 2020-10-09 21:53:43 +00:00
VulkanWindowContext.h VulkanWindowContext uses sample-able swap VkImages when available. 2020-10-09 21:53:43 +00:00
Window.cpp Add activation events to sk_app. 2020-11-16 16:44:08 +00:00
Window.h [graphite] Add support to Mac Viewer. 2021-09-30 21:38:25 +00:00
WindowContext.cpp [graphite] Add support to Mac Viewer. 2021-09-30 21:38:25 +00:00
WindowContext.h [graphite] Add support to Mac Viewer. 2021-09-30 21:38:25 +00:00