52904d35ab
This will make our Bazel rules in G3 easier to use. We will have to clean up a lot of clients (and this still might require a manual G3 roll to land to account for the source files). Eventually, we will be able to delete the old one //include/third_party/skcms and //third_party/skcms Bug: skia:12451, b/237076898 Change-Id: I9fd55607cbb7e1196d175aa8f140e99a73505c89 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/554056 Reviewed-by: Brian Salomon <bsalomon@google.com>
40 lines
1.1 KiB
Python
40 lines
1.1 KiB
Python
load("//bazel:macros.bzl", "exports_files_legacy")
|
|
|
|
licenses(["notice"])
|
|
|
|
exports_files_legacy()
|
|
|
|
filegroup(
|
|
name = "public_hdrs",
|
|
srcs = [
|
|
"//include/android:public_hdrs",
|
|
"//include/codec:public_hdrs",
|
|
"//include/config:public_hdrs",
|
|
"//include/core:public_hdrs",
|
|
"//include/docs:public_hdrs",
|
|
"//include/effects:public_hdrs",
|
|
"//include/encode:public_hdrs",
|
|
"//include/pathops:public_hdrs",
|
|
"//include/ports:public_hdrs",
|
|
"//include/utils:public_hdrs",
|
|
] + select({
|
|
"//bazel/common_config_settings:needs_sksl": ["//include/sksl:public_hdrs"],
|
|
"//conditions:default": [],
|
|
}) + select({
|
|
"//bazel/common_config_settings:has_gpu_backend": ["//include/gpu:public_hdrs"],
|
|
"//conditions:default": [],
|
|
}) + select({
|
|
"//bazel/common_config_settings:enable_svg_canvas_true": ["//include/svg:public_hdrs"],
|
|
"//conditions:default": [],
|
|
}),
|
|
visibility = ["//:__pkg__"],
|
|
)
|
|
|
|
filegroup(
|
|
name = "private_hdrs",
|
|
srcs = [
|
|
"//include/private:private_hdrs",
|
|
],
|
|
visibility = ["//:__pkg__"],
|
|
)
|