mirror of
https://github.com/topjohnwu/cxx.git
synced 2024-11-23 20:09:55 +00:00
118 lines
2.5 KiB
Python
118 lines
2.5 KiB
Python
load(
|
|
"//tools/bazel:rust.bzl",
|
|
glob = "third_party_glob",
|
|
rust_binary = "third_party_rust_binary",
|
|
rust_library = "third_party_rust_library",
|
|
)
|
|
load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
|
|
|
|
rust_library(
|
|
name = "bitflags",
|
|
srcs = glob(["vendor/bitflags-1.2.1/src/**"]),
|
|
)
|
|
|
|
rust_library(
|
|
name = "cc",
|
|
srcs = glob(["vendor/cc-1.0.66/src/**"]),
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
rust_library(
|
|
name = "clap",
|
|
srcs = glob(["vendor/clap-2.33.3/src/**"]),
|
|
edition = "2015",
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
":bitflags",
|
|
":textwrap",
|
|
":unicode-width",
|
|
],
|
|
)
|
|
|
|
rust_library(
|
|
name = "codespan-reporting",
|
|
srcs = glob(["vendor/codespan-reporting-0.9.5/src/**"]),
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
":termcolor",
|
|
":unicode-width",
|
|
],
|
|
)
|
|
|
|
rust_library(
|
|
name = "lazy_static",
|
|
srcs = glob(["vendor/lazy_static-1.4.0/src/**"]),
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
rust_library(
|
|
name = "proc-macro2",
|
|
srcs = glob(["vendor/proc-macro2-1.0.24/src/**"]),
|
|
crate_features = [
|
|
"proc-macro",
|
|
"span-locations",
|
|
],
|
|
rustc_flags = [
|
|
"--cfg=span_locations",
|
|
"--cfg=use_proc_macro",
|
|
"--cfg=wrap_proc_macro",
|
|
],
|
|
visibility = ["//visibility:public"],
|
|
deps = [":unicode-xid"],
|
|
)
|
|
|
|
rust_library(
|
|
name = "quote",
|
|
srcs = glob(["vendor/quote-1.0.8/src/**"]),
|
|
crate_features = ["proc-macro"],
|
|
visibility = ["//visibility:public"],
|
|
deps = [":proc-macro2"],
|
|
)
|
|
|
|
rust_library(
|
|
name = "scratch",
|
|
srcs = glob(["vendor/scratch-1.0.0/src/**"]),
|
|
rustc_env = {"OUT_DIR": ""},
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
rust_library(
|
|
name = "syn",
|
|
srcs = glob(["vendor/syn-1.0.57/src/**"]),
|
|
crate_features = [
|
|
"clone-impls",
|
|
"derive",
|
|
"full",
|
|
"parsing",
|
|
"printing",
|
|
"proc-macro",
|
|
],
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
":proc-macro2",
|
|
":quote",
|
|
":unicode-xid",
|
|
],
|
|
)
|
|
|
|
rust_library(
|
|
name = "termcolor",
|
|
srcs = glob(["vendor/termcolor-1.1.2/src/**"]),
|
|
)
|
|
|
|
rust_library(
|
|
name = "textwrap",
|
|
srcs = glob(["vendor/textwrap-0.11.0/src/**"]),
|
|
deps = [":unicode-width"],
|
|
)
|
|
|
|
rust_library(
|
|
name = "unicode-width",
|
|
srcs = glob(["vendor/unicode-width-0.1.8/src/**"]),
|
|
)
|
|
|
|
rust_library(
|
|
name = "unicode-xid",
|
|
srcs = glob(["vendor/unicode-xid-0.2.1/src/**"]),
|
|
)
|