1# https://github.com/bazelbuild/bazel-skylib 2load("@bazel_skylib//lib:selects.bzl", "selects") 3 4package(default_visibility = ["//visibility:private"]) 5 6filegroup( 7 name = "core-hdrs", 8 srcs = [ 9 "SkBitmaskEnum.h", 10 "SkChecksum.h", 11 "SkColorData.h", 12 "SkDeque.h", 13 "SkEncodedInfo.h", 14 "SkFixed.h", 15 "SkFloatBits.h", 16 "SkFloatingPoint.h", 17 "SkHalf.h", 18 "SkIDChangeListener.h", 19 "SkImageInfoPriv.h", 20 "SkMacros.h", 21 "SkMalloc.h", 22 "SkMutex.h", 23 "SkNoncopyable.h", 24 "SkNx.h", 25 "SkNx_neon.h", 26 "SkNx_sse.h", 27 "SkOnce.h", 28 "SkOpts_spi.h", 29 "SkPathRef.h", 30 "SkSLDefines.h", 31 "SkSLIRNode.h", 32 "SkSLLayout.h", 33 "SkSLModifiers.h", 34 "SkSLProgramElement.h", 35 "SkSLProgramKind.h", 36 "SkSLSampleUsage.h", 37 "SkSLStatement.h", 38 "SkSLString.h", 39 "SkSLSymbol.h", 40 "SkSafe32.h", 41 "SkSafe_math.h", 42 "SkSemaphore.h", 43 "SkShadowFlags.h", 44 "SkSpinlock.h", 45 "SkTArray.h", 46 "SkTDArray.h", 47 "SkTFitsIn.h", 48 "SkTHash.h", 49 "SkTLogic.h", 50 "SkTOptional.h", 51 "SkTPin.h", 52 "SkTemplates.h", 53 "SkThreadAnnotations.h", 54 "SkThreadID.h", 55 "SkTo.h", 56 "SkVx.h", 57 "SkWeakRefCnt.h", 58 ], 59) 60 61filegroup( 62 name = "gpu-hdrs", 63 srcs = [ 64 "GrContext_Base.h", 65 "GrD3DTypesMinimal.h", 66 "GrDawnTypesPriv.h", 67 "GrGLTypesPriv.h", 68 "GrImageContext.h", 69 "GrMtlTypesPriv.h", 70 "GrResourceKey.h", 71 "GrSingleOwner.h", 72 "GrTypesPriv.h", 73 "GrVkTypesPriv.h", 74 ], 75) 76 77filegroup( 78 name = "mock-hdrs", 79 srcs = ["GrMockTypesPriv.h"], 80 visibility = ["//:__subpackages__"], 81) 82 83filegroup( 84 name = "hdrs", 85 srcs = [":core-hdrs"] + selects.with_or({ 86 ("//bazel/common_config_settings:gl_backend", "//bazel/common_config_settings:vulkan_backend"): [ 87 ":gpu-hdrs", 88 ], 89 "//conditions:default": [], 90 }), 91 visibility = ["//:__subpackages__"], 92) 93