blob: 22bf2402c78c6d50af0d8543ea68c8d573eb9ed7 [file] [log] [blame]
load("@rules_cc//cc:defs.bzl", "cc_library")
# This rule was created by looking at the originally generated
# rules, which included a appended cxx_cc rule but with a different
# include prefix. By copying this here, it overrides that existing
# one and allows us to align Skia's #include path with Chromiums.
cc_library(
name = "cxx_cc",
srcs = ["src/cxx.cc"],
hdrs = ["include/cxx.h"],
includes = ["include"],
linkstatic = True,
visibility = ["//visibility:public"],
# Allow using the same include path as in Chromium:
# `#include "third_party/rust/cxx/v1/cxx.h"`.
strip_include_prefix = "include/",
include_prefix = "third_party/rust/cxx/v1/",
)