forked from mirrors/jj
d4cce209d8
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>
38 lines
624 B
Text
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,
|
|
)
|