File tree 2 files changed +21
-1
lines changed
2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,14 @@ config_setting(
84
84
},
85
85
)
86
86
87
+ selects .config_setting_group (
88
+ name = "config_win" ,
89
+ match_any = [
90
+ ":config_win32" ,
91
+ ":config_win64" ,
92
+ ]
93
+ )
94
+
87
95
config_setting (
88
96
name = "config_osx_aarch64" ,
89
97
values = {"cpu" : "osx-aarch_64" },
Original file line number Diff line number Diff line change @@ -62,11 +62,23 @@ genrule(
62
62
srcs = ["//:protoc_static" ],
63
63
outs = ["bin/protoc" ],
64
64
cmd = "cp $< $@" ,
65
+ tags = ["manual" ],
66
+ )
67
+
68
+ genrule (
69
+ name = "rename_protoc_exe" ,
70
+ srcs = ["//:protoc_static" ],
71
+ outs = ["bin/protoc.exe" ],
72
+ cmd = "cp $< $@" ,
73
+ tags = ["manual" ],
65
74
)
66
75
67
76
pkg_files (
68
77
name = "protoc_files" ,
69
- srcs = ["bin/protoc" ],
78
+ srcs = select ({
79
+ "//build_defs:config_win" : ["bin/protoc.exe" ],
80
+ "//conditions:default" : ["bin/protoc" ],
81
+ }),
70
82
attributes = pkg_attributes (mode = "0555" ),
71
83
prefix = "bin/" ,
72
84
visibility = ["//visibility:private" ],
You can’t perform that action at this time.
0 commit comments