-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rust: add a way to build cxxbridge-cmd
- Loading branch information
1 parent
fcb9428
commit ec5cf3d
Showing
4 changed files
with
989 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
load("@cxxbridge_cmd_deps//:defs.bzl", "aliases", "all_crate_deps") | ||
load("@rules_rust//rust:defs.bzl", "rust_binary") | ||
|
||
licenses(["notice"]) | ||
|
||
# cxxbridge is a codegen tool for cxx. | ||
# | ||
# Note that you must build this target as @cxxbridge-cmd//:cxxbridge, not as | ||
# //external_patches/cxxbridge-cmd:cxxbridge or any other path. | ||
rust_binary( | ||
name = "cxxbridge", | ||
srcs = glob(["src/**/*.rs"]), | ||
data = [ | ||
"src/gen/include/cxx.h", | ||
], | ||
edition = "2021", | ||
aliases = aliases(), | ||
deps = all_crate_deps(), | ||
) |
Oops, something went wrong.