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 the //gn/sksl.gni file. 10skia_filegroup( 11 name = "sksl_private_hdrs", 12 srcs = [ 13 "SkSLSampleUsage.h", 14 ], 15) 16 17skia_filegroup( 18 name = "core_priv_hdrs", 19 srcs = [ 20 # Files listed here will be available to Skia internals via the core_priv target. 21 "SkIDChangeListener.h", 22 "SkSLSampleUsage.h", 23 "SkGainmapShader.h", 24 "SkGainmapInfo.h", 25 ], 26 visibility = ["//src/core:__pkg__"], 27) 28 29skia_filegroup( 30 name = "core_srcs", 31 srcs = [ 32 # We really don't want this header to be used outside of SkPath and SkPathBuilder 33 # so we add it to core under srcs instead to enforce that. 34 "SkPathRef.h", 35 "SkWeakRefCnt.h", 36 ], 37 visibility = ["//src/core:__pkg__"], 38) 39 40skia_filegroup( 41 name = "decode_srcs", 42 srcs = [ 43 "SkEncodedInfo.h", 44 "SkExif.h", 45 ], 46 visibility = ["//src/codec:__pkg__"], 47) 48 49skia_filegroup( 50 name = "jpeg_decode_srcs", 51 srcs = [ 52 "SkJpegMetadataDecoder.h", 53 ], 54 visibility = ["//src/codec:__pkg__"], 55) 56 57generate_cpp_files_for_headers( 58 name = "headers_to_compile", 59 headers = [ 60 "SkIDChangeListener.h", 61 "SkWeakRefCnt.h", 62 ], 63) 64