From 91473dcebfbd90a8e256568e287e168b70c77ff0 Mon Sep 17 00:00:00 2001 From: Chris Fallin Date: Fri, 12 Dec 2014 15:58:26 -0800 Subject: Rename protobuf Ruby module to google/protobuf and rework its build system. The Ruby module build now uses an amalgamated distribution of upb, and successfully builds a Ruby gem called 'google-protobuf' with module 'google/protobuf'. --- ruby/ext/google/protobuf_c/extconf.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 ruby/ext/google/protobuf_c/extconf.rb (limited to 'ruby/ext/google/protobuf_c/extconf.rb') diff --git a/ruby/ext/google/protobuf_c/extconf.rb b/ruby/ext/google/protobuf_c/extconf.rb new file mode 100644 index 00000000..7cf7bf6a --- /dev/null +++ b/ruby/ext/google/protobuf_c/extconf.rb @@ -0,0 +1,10 @@ +#!/usr/bin/ruby + +require 'mkmf' + +$CFLAGS += " -O3 -std=c99 -Wno-unused-function -DNDEBUG " + +$objs = ["protobuf.o", "defs.o", "storage.o", "message.o", + "repeated_field.o", "encode_decode.o", "upb.o"] + +create_makefile("google/protobuf_c") -- cgit v1.2.3