| 1 |
load("@rules_cc//cc:defs.bzl", "cc_library") |
| 2 |
|
| 3 |
|
| 4 |
# This rule was created by looking at the originally generated |
| 5 |
# rules, which included a appended cxx_cc rule but with a different |
| 6 |
# include prefix. By copying this here, it overrides that existing |
| 7 |
# one and allows us to align Skia's #include path with Chromiums. |
| 8 |
cc_library( |
| 9 |
name = "cxx_cc", |
| 10 |
srcs = ["src/cxx.cc"], |
| 11 |
hdrs = ["include/cxx.h"], |
| 12 |
includes = ["include"], |
| 13 |
linkstatic = True, |
| 14 |
visibility = ["//visibility:public"], |
| 15 |
|
| 16 |
# Allow using the same include path as in Chromium: |
| 17 |
# `#include "third_party/rust/cxx/v1/cxx.h"`. |
| 18 |
strip_include_prefix = "include/", |
| 19 |
include_prefix = "third_party/rust/cxx/v1/", |
| 20 |
) |