diff options
author | Chris Fallin <cfallin@c1f.net> | 2014-12-12 15:58:26 -0800 |
---|---|---|
committer | Chris Fallin <cfallin@c1f.net> | 2014-12-12 15:58:26 -0800 |
commit | 91473dcebfbd90a8e256568e287e168b70c77ff0 (patch) | |
tree | 6a2fc1a9242659963b5f3bae9c146d957027f5e2 /ruby/ext/google/protobuf_c/extconf.rb | |
parent | f473bb9903370cc9324b0881873e0d0861f5d325 (diff) | |
download | protobuf-91473dcebfbd90a8e256568e287e168b70c77ff0.tar.gz protobuf-91473dcebfbd90a8e256568e287e168b70c77ff0.tar.bz2 protobuf-91473dcebfbd90a8e256568e287e168b70c77ff0.zip |
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'.
Diffstat (limited to 'ruby/ext/google/protobuf_c/extconf.rb')
-rw-r--r-- | ruby/ext/google/protobuf_c/extconf.rb | 10 |
1 files changed, 10 insertions, 0 deletions
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") |