skia2/tools/sk_app
Kevin Lubick ee62fad9a4 [bazel] Add "skia_internal" target that exposes private API for tests/tools.
Organization v3.5, if we are keeping track :)

This splits the "srcs" filegroup into "srcs" and "private_hdrs",
and renames "hdrs" to "public_hdrs".

To assist with the split, I created the macro split_srcs_and_hdrs.
Rather than keep two separate lists of header and source files,
I figured it would be easiest, at least for the common case,
to keep one list of files and then have a for loop split them
apart. I've tried to be consistent with having the list
of files be named with a _FILES suffix - maybe we can use this
as a marker to generate .gni files in the future?

Suggested review order:
 - //bazel/macros.bzl. Note this needs a corresponding
   G3 change (http://cl/452279799) as well. The exports_files_legacy
   change is the better approach to something I manually
   handled yesterday when fixing the G3 roll.
 - //BUILD.bazel to see the new target skia_internal and
   the previous skia_core renamed to skia_public.
 - //src/core/BUILD.bazel to see a typical usage of
   split_srcs_and_hdrs.
 - //include/... to see the change to public_hdrs and
   private_hdrs
 - //src/... to see many more usages of split_srcs_and_hdrs
 - //tools/... to see changes to skia_internal where
   appropriate.
 - Everything else. Note that //modules/... might also need
   to be built with skia_internal instead of skia_public,
   but we can fix that up later, if necessary.

Change-Id: Ie1cc969455d97b029b2d77faa222c4a9bad70671
Bug: skia:12541
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/545716
Reviewed-by: Ben Wagner <bungeman@google.com>
Reviewed-by: Leandro Lovisolo <lovisolo@google.com>
2022-06-02 11:23:50 +00:00
..
android [bazel] Delete gazelle-based BUILD.bazel files 2022-05-31 14:14:54 +00:00
ios [bazel] Delete gazelle-based BUILD.bazel files 2022-05-31 14:14:54 +00:00
mac [bazel] Delete gazelle-based BUILD.bazel files 2022-05-31 14:14:54 +00:00
unix [bazel] Get GPU examples working 2022-05-31 14:14:54 +00:00
wasm [bazel] Delete gazelle-based BUILD.bazel files 2022-05-31 14:14:54 +00:00
win [bazel] Delete gazelle-based BUILD.bazel files 2022-05-31 14:14:54 +00:00
Application.h Remove SampleApp and convert HelloWorld to sk_app 2017-11-21 18:37:19 +00:00
BUILD.bazel [bazel] Add "skia_internal" target that exposes private API for tests/tools. 2022-06-02 11:23:50 +00:00
CommandSet.cpp [bazel] Use toolchain features to opt files into being IWYU compliant. 2022-03-16 13:09:46 +00:00
CommandSet.h [bazel] Use toolchain features to opt files into being IWYU compliant. 2022-03-16 13:09:46 +00:00
DawnWindowContext.cpp [dawn] Clean up include paths and dawn_native namespace 2022-03-07 14:38:55 +00:00
DawnWindowContext.h [dawn] Clean up include paths and dawn_native namespace 2022-03-07 14:38:55 +00:00
DisplayParams.h [includes] Prepare for moving SkColorSpace to forward declare 2022-03-31 19:50:10 +00:00
GLWindowContext.cpp Move all Ganesh source files into ganesh subdirectory. 2022-04-07 21:06:50 +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 Reland "[graphite] Move Graphite into Skia base directories." 2022-04-11 18:37:20 +00:00
MetalWindowContext.h Move Ganesh specific headers into include/private/gpu/ganesh 2022-04-12 17:30:07 +00:00
MetalWindowContext.mm Move all Ganesh source files into ganesh subdirectory. 2022-04-07 21:06:50 +00:00
RasterWindowContext.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
VulkanWindowContext.cpp Move all Ganesh source files into ganesh subdirectory. 2022-04-07 21:06:50 +00:00
VulkanWindowContext.h Move all Ganesh source files into ganesh subdirectory. 2022-04-07 21:06:50 +00:00
Window.cpp Add activation events to sk_app. 2020-11-16 16:44:08 +00:00
Window.h [graphite] Move all graphite classes under skgpu::graphite. 2022-04-08 00:42:37 +00:00
WindowContext.cpp Reland "[graphite] Move Graphite into Skia base directories." 2022-04-11 18:37:20 +00:00
WindowContext.h [graphite] Move all graphite classes under skgpu::graphite. 2022-04-08 00:42:37 +00:00