Debian Codegraph @

include/private/BUILD.bazel

raw
1 load("//bazel:skia_rules.bzl", "generate_cpp_files_for_headers", "skia_filegroup")
2
3 package(
4 default_applicable_licenses = ["//:license"],
5 )
6
7 licenses(["notice"])
8
9 SKSL_PRIVATE_HDRS = ["SkSLSampleUsage.h"]
10
11 CORE_PRIV_HDRS = [
12 # Files listed here will be available to Skia internals via the core_priv target.
13 "SkIDChangeListener.h",
14 "SkGainmapShader.h",
15 "SkGainmapInfo.h",
16 "SkHdrMetadata.h",
17 ]
18
19 CORE_SRCS = [
20 # We really don't want these headers to be used outside of SkPath and SkPathBuilder
21 # so we add it to core under srcs instead to enforce that.
22 "SkPathRef.h",
23 "SkWeakRefCnt.h",
24 ]
25
26 DECODE_SRCS_HDRS = [
27 "SkEncodedInfo.h",
28 "SkExif.h",
29 ]
30
31 JPEG_DECODE_SRCS_HDRS = [
32 "SkJpegMetadataDecoder.h",
33 "SkXmp.h",
34 ]
35
36 # In own skia_filegroup for mapping to the //gn/sksl.gni file.
37 skia_filegroup(
38 name = "sksl_private_hdrs",
39 srcs = SKSL_PRIVATE_HDRS,
40 )
41
42 skia_filegroup(
43 name = "core_priv_hdrs",
44 srcs = CORE_PRIV_HDRS + SKSL_PRIVATE_HDRS,
45 visibility = ["//src/core:__pkg__"],
46 )
47
48 skia_filegroup(
49 name = "core_srcs",
50 srcs = CORE_SRCS,
51 visibility = ["//src/core:__pkg__"],
52 )
53
54 skia_filegroup(
55 name = "decode_srcs",
56 srcs = DECODE_SRCS_HDRS,
57 visibility = ["//src/codec:__pkg__"],
58 )
59
60 skia_filegroup(
61 name = "jpeg_decode_srcs",
62 srcs = JPEG_DECODE_SRCS_HDRS,
63 visibility = ["//src/codec:__pkg__"],
64 )
65
66 generate_cpp_files_for_headers(
67 name = "headers_to_compile",
68 headers = SKSL_PRIVATE_HDRS +
69 CORE_PRIV_HDRS +
70 CORE_SRCS +
71 DECODE_SRCS_HDRS +
72 JPEG_DECODE_SRCS_HDRS,
73 )