A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/protocolbuffers/protobuf/commit/2dac90d6459fd46c874af0bee6c277882eaa329a below:

Make rules_ruby a dev-only dependency. (#20575) · protocolbuffers/protobuf@2dac90d · GitHub

@@ -7,9 +7,10 @@ load("@bazel_skylib//rules:common_settings.bzl", "string_flag")

7 7

load("@rules_pkg//:mappings.bzl", "pkg_files", "strip_prefix")

8 8

load("@rules_ruby//ruby:defs.bzl", "ruby_library")

9 9

load("//build_defs:internal_shell.bzl", "inline_sh_binary")

10 -

load("//:protobuf.bzl", "internal_ruby_proto_library")

11 -

load("//conformance:defs.bzl", "conformance_test")

10 +

load("//python:internal.bzl", "internal_copy_files")

11 +

load("//ruby:defs.bzl", "internal_ruby_proto_library")

12 12

load("//:protobuf_version.bzl", "PROTOBUF_RUBY_VERSION")

13 +

load("//conformance:defs.bzl", "conformance_test")

13 14 14 15

################################################################################

15 16

# Ruby Runtime

@@ -86,6 +87,49 @@ selects.config_setting_group(

86 87

],

87 88

)

88 89 90 +

internal_copy_files(

91 +

name = "copied_wkt_proto_files",

92 +

srcs = [

93 +

"//:well_known_type_protos",

94 +

"//src/google/protobuf:descriptor_proto_srcs",

95 +

"//src/google/protobuf/compiler:plugin.proto",

96 +

],

97 +

strip_prefix = "src",

98 +

)

99 + 100 +

internal_ruby_proto_library(

101 +

name = "well_known_ruby_protos",

102 +

srcs = [":copied_wkt_proto_files"],

103 +

default_runtime = "",

104 +

includes = ["."],

105 +

visibility = [

106 +

"//conformance:__pkg__",

107 +

"//ruby:__subpackages__",

108 +

],

109 +

)

110 + 111 +

internal_copy_files(

112 +

name = "copied_conformance_test_files",

113 +

testonly = 1,

114 +

srcs = [

115 +

"//src/google/protobuf:test_messages_proto2.proto",

116 +

"//src/google/protobuf:test_messages_proto3.proto",

117 +

],

118 +

strip_prefix = "src",

119 +

)

120 + 121 +

internal_ruby_proto_library(

122 +

name = "conformance_test_ruby_proto",

123 +

testonly = 1,

124 +

srcs = [":copied_conformance_test_files"],

125 +

includes = ["."],

126 +

visibility = [

127 +

"//conformance:__pkg__",

128 +

"//ruby:__subpackages__",

129 +

],

130 +

deps = [":well_known_ruby_protos"],

131 +

)

132 + 89 133

ruby_library(

90 134

name = "protobuf",

91 135

visibility = [

@@ -105,7 +149,7 @@ genrule(

105 149

"//ruby/lib/google:copy_jar",

106 150

"//ruby/lib/google:dist_files",

107 151

"//ruby/ext/google/protobuf_c:dist_files",

108 -

"//:well_known_ruby_protos",

152 +

":well_known_ruby_protos",

109 153

"google-protobuf.gemspec",

110 154

],

111 155

outs = ["google-protobuf-" + PROTOBUF_RUBY_VERSION + "-java.gem"],

@@ -119,7 +163,7 @@ genrule(

119 163

for utf in $(execpaths @utf8_range//:utf8_range_srcs) $(execpath @utf8_range//:LICENSE); do

120 164

mv "tmp/$$utf" "tmp/ruby/ext/google/protobuf_c/third_party/utf8_range"

121 165

done

122 -

for wkt in $(execpaths //:well_known_ruby_protos); do

166 +

for wkt in $(execpaths :well_known_ruby_protos); do

123 167

mv "tmp/$$wkt" "tmp/ruby/lib/google/protobuf/"

124 168

done

125 169

mv "tmp/$(execpath //ruby/lib/google:copy_jar)" "tmp/ruby/lib/google"

@@ -141,9 +185,9 @@ genrule(

141 185

srcs = [

142 186

"@utf8_range//:utf8_range_srcs",

143 187

"@utf8_range//:LICENSE",

144 -

"//:well_known_ruby_protos",

145 188

"//ruby/ext/google/protobuf_c:dist_files",

146 189

"//ruby/lib/google:dist_files",

190 +

":well_known_ruby_protos",

147 191

"google-protobuf.gemspec",

148 192

],

149 193

outs = ["google-protobuf-" + PROTOBUF_RUBY_VERSION + ".gem"],

@@ -157,7 +201,7 @@ genrule(

157 201

for utf in $(execpaths @utf8_range//:utf8_range_srcs) $(execpath @utf8_range//:LICENSE); do

158 202

mv "tmp/$$utf" "tmp/ruby/ext/google/protobuf_c/third_party/utf8_range"

159 203

done

160 -

for wkt in $(execpaths //:well_known_ruby_protos); do

204 +

for wkt in $(execpaths :well_known_ruby_protos); do

161 205

mv "tmp/$$wkt" "tmp/ruby/lib/google/protobuf/"

162 206

done

163 207

cd tmp/ruby

@@ -198,7 +242,7 @@ internal_ruby_proto_library(

198 242

visibility = [

199 243

"//ruby:__subpackages__",

200 244

],

201 -

deps = ["//:well_known_ruby_protos"],

245 +

deps = [":well_known_ruby_protos"],

202 246

)

203 247 204 248

conformance_test(


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4