|
|
@ -62,11 +62,23 @@ genrule( |
|
|
|
srcs = ["//:protoc_static"], |
|
|
|
srcs = ["//:protoc_static"], |
|
|
|
outs = ["bin/protoc"], |
|
|
|
outs = ["bin/protoc"], |
|
|
|
cmd = "cp $< $@", |
|
|
|
cmd = "cp $< $@", |
|
|
|
|
|
|
|
tags = ["manual"], |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
genrule( |
|
|
|
|
|
|
|
name = "rename_protoc_exe", |
|
|
|
|
|
|
|
srcs = ["//:protoc_static"], |
|
|
|
|
|
|
|
outs = ["bin/protoc.exe"], |
|
|
|
|
|
|
|
cmd = "cp $< $@", |
|
|
|
|
|
|
|
tags = ["manual"], |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
pkg_files( |
|
|
|
pkg_files( |
|
|
|
name = "protoc_files", |
|
|
|
name = "protoc_files", |
|
|
|
srcs = ["bin/protoc"], |
|
|
|
srcs = select({ |
|
|
|
|
|
|
|
"//build_defs:config_win": ["bin/protoc.exe"], |
|
|
|
|
|
|
|
"//conditions:default": ["bin/protoc"], |
|
|
|
|
|
|
|
}), |
|
|
|
attributes = pkg_attributes(mode = "0555"), |
|
|
|
attributes = pkg_attributes(mode = "0555"), |
|
|
|
prefix = "bin/", |
|
|
|
prefix = "bin/", |
|
|
|
visibility = ["//visibility:private"], |
|
|
|
visibility = ["//visibility:private"], |
|
|
|