1load("//bazel:skia_rules.bzl", "generate_cpp_files_for_headers", "skia_filegroup") 2 3package( 4 default_applicable_licenses = ["//:license"], 5) 6 7licenses(["notice"]) 8 9# In own skia_filegroup for mapping to //gn/gpu.gni:skia_shared_gpu_sources. 10SHARED_GPU_HEADERS = ["SingleOwner.h"] 11 12skia_filegroup( 13 name = "shared_gpu_private_hdrs", 14 srcs = SHARED_GPU_HEADERS, 15) 16 17# Headers with no corresponding .cpp files 18IWYU_HDRS = [ 19 "SkAPI.h", 20 "SkASAN.h", 21 "SkAlign.h", 22 "SkAlignedStorage.h", 23 "SkAnySubclass.h", 24 "SkAssert.h", 25 "SkAttributes.h", 26 "SkCPUTypes.h", 27 "SkDebug.h", 28 "SkFeatures.h", 29 "SkFixed.h", 30 "SkLoadUserConfig.h", 31 "SkMacros.h", 32 "SkMath.h", 33 "SkMutex.h", 34 "SkNoncopyable.h", 35 "SkOnce.h", 36 "SkPoint_impl.h", 37 "SkSafe32.h", 38 "SkSpan_impl.h", 39 "SkTArray.h", 40 "SkTFitsIn.h", 41 "SkTLogic.h", 42 "SkTPin.h", 43 "SkTemplates.h", 44 "SkThreadAnnotations.h", 45 "SkTo.h", 46 "SkTypeTraits.h", 47] 48 49skia_filegroup( 50 name = "private_hdrs", 51 srcs = IWYU_HDRS + [ 52 "SkContainers.h", 53 "SkDeque.h", 54 "SkFloatingPoint.h", 55 "SkMalloc.h", 56 "SkSemaphore.h", 57 "SkTDArray.h", 58 "SkThreadID.h", 59 ":shared_gpu_private_hdrs", 60 ], 61 visibility = [ 62 "//src/base:__pkg__", 63 "//src/opts:__pkg__", 64 ], 65) 66 67generate_cpp_files_for_headers( 68 name = "headers_to_compile", 69 headers = IWYU_HDRS + SHARED_GPU_HEADERS, 70) 71