mirror of
https://gitee.com/openharmony/third_party_rust_cxx
synced 2024-11-23 07:10:29 +00:00
Sort buck genrule args the way buildifier wants
https://github.com/bazelbuild/buildtools/tree/master/buildifier
This commit is contained in:
parent
f48e97e55a
commit
7273963a61
@ -20,17 +20,17 @@ cxx_library(
|
||||
genrule(
|
||||
name = "gen-header",
|
||||
srcs = ["src/main.rs"],
|
||||
out = "generated.h",
|
||||
cmd = "$(exe //:codegen) --header ${SRCS} > ${OUT}",
|
||||
type = "cxxbridge",
|
||||
out = "generated.h",
|
||||
)
|
||||
|
||||
genrule(
|
||||
name = "gen-source",
|
||||
srcs = ["src/main.rs"],
|
||||
out = "generated.cc",
|
||||
cmd = "$(exe //:codegen) ${SRCS} > ${OUT}",
|
||||
type = "cxxbridge",
|
||||
out = "generated.cc",
|
||||
)
|
||||
|
||||
cxx_library(
|
||||
|
@ -34,20 +34,20 @@ cxx_library(
|
||||
genrule(
|
||||
name = "gen-lib-header",
|
||||
srcs = ["ffi/lib.rs"],
|
||||
cmd = "$(exe //:codegen) --header ${SRCS} > ${OUT}",
|
||||
out = "lib.rs.h",
|
||||
cmd = "$(exe //:codegen) --header ${SRCS} > ${OUT}",
|
||||
)
|
||||
|
||||
genrule(
|
||||
name = "gen-lib-source",
|
||||
srcs = ["ffi/lib.rs"],
|
||||
cmd = "$(exe //:codegen) ${SRCS} > ${OUT}",
|
||||
out = "lib.rs.cc",
|
||||
cmd = "$(exe //:codegen) ${SRCS} > ${OUT}",
|
||||
)
|
||||
|
||||
genrule(
|
||||
name = "gen-module-source",
|
||||
srcs = ["ffi/module.rs"],
|
||||
cmd = "$(exe //:codegen) ${SRCS} > ${OUT}",
|
||||
out = "module.rs.cc",
|
||||
cmd = "$(exe //:codegen) ${SRCS} > ${OUT}",
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user