Sha256: 3ebfdc848308f1ea8c42da7786b8acf1205047f727fe0839c67d1487766bb52f

Contents?: true

Size: 835 Bytes

Versions: 81

Compression:

Stored size: 835 Bytes

Contents

#!/usr/bin/ruby

require 'mkmf'

ext_name = "google/protobuf_c"

dir_config(ext_name)

if RUBY_PLATFORM =~ /darwin/ || RUBY_PLATFORM =~ /linux/ || RUBY_PLATFORM =~ /freebsd/
  $CFLAGS += " -std=gnu99 -O3 -DNDEBUG -fvisibility=hidden -Wall -Wsign-compare -Wno-declaration-after-statement"
else
  $CFLAGS += " -std=gnu99 -O3 -DNDEBUG"
end

if RUBY_PLATFORM =~ /linux/
  # Instruct the linker to point memcpy calls at our __wrap_memcpy wrapper.
  $LDFLAGS += " -Wl,-wrap,memcpy"
end

$VPATH << "$(srcdir)/third_party/utf8_range"
$INCFLAGS += " -I$(srcdir)/third_party/utf8_range"

$srcs = ["protobuf.c", "convert.c", "defs.c", "message.c",
         "repeated_field.c", "map.c", "ruby-upb.c", "wrap_memcpy.c",
         "naive.c", "range2-neon.c", "range2-sse.c", "shared_convert.c",
         "shared_message.c"]

create_makefile(ext_name)

Version data entries

81 entries across 81 versions & 1 rubygems

Version Path
google-protobuf-3.25.6 ext/google/protobuf_c/extconf.rb
google-protobuf-3.25.6-x86_64-linux ext/google/protobuf_c/extconf.rb
google-protobuf-3.25.6-x86_64-darwin ext/google/protobuf_c/extconf.rb
google-protobuf-3.25.6-x86-mingw32 ext/google/protobuf_c/extconf.rb
google-protobuf-3.25.6-x86-linux ext/google/protobuf_c/extconf.rb
google-protobuf-3.25.6-x64-mingw32 ext/google/protobuf_c/extconf.rb
google-protobuf-3.25.6-x64-mingw-ucrt ext/google/protobuf_c/extconf.rb
google-protobuf-3.25.6-arm64-darwin ext/google/protobuf_c/extconf.rb
google-protobuf-3.25.6-aarch64-linux ext/google/protobuf_c/extconf.rb
google-protobuf-3.25.5 ext/google/protobuf_c/extconf.rb
google-protobuf-3.25.5-x86_64-linux ext/google/protobuf_c/extconf.rb
google-protobuf-3.25.5-x86_64-darwin ext/google/protobuf_c/extconf.rb
google-protobuf-3.25.5-x86-mingw32 ext/google/protobuf_c/extconf.rb
google-protobuf-3.25.5-x86-linux ext/google/protobuf_c/extconf.rb
google-protobuf-3.25.5-x64-mingw32 ext/google/protobuf_c/extconf.rb
google-protobuf-3.25.5-x64-mingw-ucrt ext/google/protobuf_c/extconf.rb
google-protobuf-3.25.5-arm64-darwin ext/google/protobuf_c/extconf.rb
google-protobuf-3.25.5-aarch64-linux ext/google/protobuf_c/extconf.rb
google-protobuf-3.25.4 ext/google/protobuf_c/extconf.rb
google-protobuf-3.25.4-x86_64-linux ext/google/protobuf_c/extconf.rb