|
|
|
@ -84,12 +84,16 @@ if RUBY_PLATFORM == "java" |
|
|
|
|
else |
|
|
|
|
unless ENV['IN_DOCKER'] == 'true' |
|
|
|
|
# We need utf8_range in-tree. |
|
|
|
|
if ENV['BAZEL'] == 'true' |
|
|
|
|
utf8_root = '../external/utf8_range' |
|
|
|
|
else |
|
|
|
|
utf8_root = '../third_party/utf8_range' |
|
|
|
|
end |
|
|
|
|
FileUtils.mkdir_p("ext/google/protobuf_c/third_party/utf8_range") |
|
|
|
|
FileUtils.cp("../third_party/utf8_range/utf8_range.h", "ext/google/protobuf_c/third_party/utf8_range") |
|
|
|
|
FileUtils.cp("../third_party/utf8_range/naive.c", "ext/google/protobuf_c/third_party/utf8_range") |
|
|
|
|
FileUtils.cp("../third_party/utf8_range/range2-neon.c", "ext/google/protobuf_c/third_party/utf8_range") |
|
|
|
|
FileUtils.cp("../third_party/utf8_range/range2-sse.c", "ext/google/protobuf_c/third_party/utf8_range") |
|
|
|
|
FileUtils.cp("../third_party/utf8_range/LICENSE", "ext/google/protobuf_c/third_party/utf8_range") |
|
|
|
|
FileUtils.cp(utf8_root+"/utf8_range.h", "ext/google/protobuf_c/third_party/utf8_range") |
|
|
|
|
FileUtils.cp(utf8_root+"/naive.c", "ext/google/protobuf_c/third_party/utf8_range") |
|
|
|
|
FileUtils.cp(utf8_root+"/range2-neon.c", "ext/google/protobuf_c/third_party/utf8_range") |
|
|
|
|
FileUtils.cp(utf8_root+"/range2-sse.c", "ext/google/protobuf_c/third_party/utf8_range") |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
Rake::ExtensionTask.new("protobuf_c", spec) do |ext| |
|
|
|
|