skia2/include/private/BUILD.bazel
Kevin Lubick 956704b387 [bazel] Get GPU examples working
This adds targets which test our Dawn, GL, and Vulkan backends.

It follows the hierarchical filegroup pattern, as
outlined in https://skia-review.googlesource.com/c/skia/+/543977

Suggested Review order:
 - tools/sk_app/BUILD.bazel. For many things in tools, I anticipate
   they will depend on //:skia_core and other //tools targets.
   sk_app shows this off, as well how to make the target
   specific to a given platform and pull in the proper native code.
   I'm trying out setting test_only = True, to see if we can
   partition Skia's tests and helpers from the actual Skia library.
 - other changes to //tools/, especially looking at sk_app's
   dependencies.
 - //example/BUILD.bazel. This uses the cc_binary_with_flags which
   existed previously [1] to make it so people don't have to
   specify all the flags for a given binary and can build it as is.
   These targets nows how up in //bazel/Makefile
 - //include/... and //src/..., where some typos from previous
   CLs were fixed and rules expanded.
 - Misc changes to .cpp files to remove unnecessary includes
   that were assuming the GL backend was being compiled in.
 - All other changes

[1] 162dfca340/bazel/cc_binary_with_flags.bzl
Change-Id: Ieacec464d44368cad0da0890c7dc85a6c0b900c9
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/544317
Reviewed-by: Ben Wagner <bungeman@google.com>
Reviewed-by: Leandro Lovisolo <lovisolo@google.com>
2022-05-31 14:14:54 +00:00

72 lines
1.6 KiB
Python

load("//bazel:macros.bzl", "exports_files_legacy")
licenses(["notice"])
exports_files_legacy()
exports_files(
["SkBitmaskEnum.h"],
visibility = ["//tools/skui:__pkg__"],
)
filegroup(
name = "srcs",
srcs = [
"SingleOwner.h",
"SkBitmaskEnum.h",
"SkChecksum.h",
"SkColorData.h",
"SkDeque.h",
"SkEncodedInfo.h",
"SkFixed.h",
"SkFloatBits.h",
"SkFloatingPoint.h",
"SkHalf.h",
"SkIDChangeListener.h",
"SkImageInfoPriv.h",
"SkMacros.h",
"SkMalloc.h",
"SkMutex.h",
"SkNoncopyable.h",
"SkOnce.h",
"SkOpts_spi.h",
"SkPathRef.h",
"SkSLDefines.h",
"SkSLIRNode.h",
"SkSLLayout.h",
"SkSLModifiers.h",
"SkSLProgramElement.h",
"SkSLProgramKind.h",
"SkSLSampleUsage.h",
"SkSLStatement.h",
"SkSLString.h",
"SkSLSymbol.h",
"SkSafe32.h",
"SkSafe_math.h",
"SkSemaphore.h",
"SkShadowFlags.h",
"SkSpinlock.h",
"SkStringView.h",
"SkTArray.h",
"SkTDArray.h",
"SkTFitsIn.h",
"SkTHash.h",
"SkTLogic.h",
"SkTPin.h",
"SkTemplates.h",
"SkThreadAnnotations.h",
"SkThreadID.h",
"SkTo.h",
"SkUniquePaintParamsID.h",
"SkVx.h",
"SkWeakRefCnt.h",
"//include/private/chromium:srcs",
] + select({
"//bazel/common_config_settings:has_gpu_backend": [
"//include/private/gpu:srcs",
],
"//conditions:default": [],
}),
visibility = ["//include:__pkg__"],
)