skia2/modules/skcms/BUILD.bazel
Kevin Lubick 2e61aa9b6e [bazel] Reduce stack size usage of debug skcms build
Bug: skia:12541
Change-Id: If08b05c77b0d5e610f6b4d5435cea9cc117053b2
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/555080
Reviewed-by: Brian Salomon <bsalomon@google.com>
2022-06-30 19:35:53 +00:00

33 lines
1.0 KiB
Python

load("//bazel:macros.bzl", "cc_library", "exports_files_legacy")
licenses(["notice"])
exports_files_legacy()
cc_library(
name = "skcms",
srcs = [
"skcms.cc",
"skcms_internal.h",
],
hdrs = [
"skcms.h",
# TODO(kjlubick, brianosman) Remove this bridged include after all G3 clients are migrated.
"//include/third_party/skcms:skcms.h",
],
# The following comment will be replaced with G3-specific settings
# SKCMS_REPLACE_IN_GOOGLE3_COMPATIBLE_WITH
copts = select({
"//bazel/common_config_settings:release_build": [],
# Some clients have a constrained stack-size, and building skcms with -O0 (the default for debug) can
# go over that limit. Thus, we have a slightly more optimized build to make that fit.
"//conditions:default": ["-O1"],
}),
includes = ["."],
# This header does not compile on its own and is meant to be included from skcms.cc
textual_hdrs = [
"src/Transform_inl.h",
],
visibility = ["//:__subpackages__"],
)