ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/cli/BUILD
Austin Seipp d4cce209d8 cli: add BUILD files
The `grammar` macro from `pest_derive` doesn't actually interpret the given file
as relative in our case, so we have to give it the fully qualified relative path
which exists in the `buck-out/` dir.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
2024-09-04 14:30:01 -05:00

38 lines
624 B
Text

load("//buck/shims/jj.bzl", "jj")
load("//cli/BUILD.deps.bzl", "JJ_CLI_DEPS")
alias(
# NOTE: default target for this package
name = 'cli',
actual = ':jj',
)
jj.rust_library(
name = "jj-cli",
srcs = glob([
"src/**/*.rs",
"src/**/*.toml",
"src/**/*.json",
"src/**/*.pest",
], exclude = [
"**/main.rs"
]),
features = [
"watchman",
"git",
],
deps = JJ_CLI_DEPS,
)
jj.rust_binary(
name = 'jj',
srcs = ['src/main.rs'],
features = [
"watchman",
"git",
],
deps = [ ":jj-cli" ] + JJ_CLI_DEPS,
)