diff --git a/config/software/google-protobuf.rb b/config/software/google-protobuf.rb index 907baf269..4a73b3f8a 100644 --- a/config/software/google-protobuf.rb +++ b/config/software/google-protobuf.rb @@ -21,7 +21,7 @@ # with the gem. name "google-protobuf" -default_version "v3.19.1" +default_version "v3.20.1" dependency "ruby" @@ -32,7 +32,14 @@ license :project_license build do + mkdir "#{project_dir}/ruby/ext/google/protobuf_c/third_party/utf8_range" + copy "#{project_dir}/third_party/utf8_range/utf8_range.h", "#{project_dir}/ruby/ext/google/protobuf_c/third_party/utf8_range" + copy "#{project_dir}/third_party/utf8_range/naive.c", "#{project_dir}/ruby/ext/google/protobuf_c/third_party/utf8_range" + copy "#{project_dir}/third_party/utf8_range/range2-neon.c", "#{project_dir}/ruby/ext/google/protobuf_c/third_party/utf8_range" + copy "#{project_dir}/third_party/utf8_range/range2-sse.c", "#{project_dir}/ruby/ext/google/protobuf_c/third_party/utf8_range" + copy "#{project_dir}/third_party/utf8_range/LICENSE", "#{project_dir}/ruby/ext/google/protobuf_c/third_party/utf8_range" + env = with_standard_compiler_flags(with_embedded_path) gem "build google-protobuf.gemspec", env: env, cwd: "#{project_dir}/ruby" gem "install google-protobuf-*.gem", env: env, cwd: "#{project_dir}/ruby" -end +end \ No newline at end of file