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/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/protobuf_c/extconf.rb')
-rw-r--r-- | ruby/ext/protobuf_c/extconf.rb | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/ruby/ext/protobuf_c/extconf.rb b/ruby/ext/protobuf_c/extconf.rb deleted file mode 100644 index 7f23b1a8..00000000 --- a/ruby/ext/protobuf_c/extconf.rb +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/ruby - -require 'mkmf' - -upb_path = File.absolute_path(File.dirname($0)) + "/../../../upb" -libs = ["upb_pic", "upb.pb_pic", "upb.json_pic"] -system("cd #{upb_path}; make " + libs.map{|l| "lib/lib#{l}.a"}.join(" ")) - -$CFLAGS += " -O3 -std=c99 -Wno-unused-function -DNDEBUG" - -find_header("upb/upb.h", upb_path) or - raise "Can't find upb headers" -find_library("upb_pic", "upb_msgdef_new", upb_path + "/lib") or - raise "Can't find upb lib" -find_library("upb.pb_pic", "upb_pbdecoder_init", upb_path + "/lib") or - raise "Can't find upb.pb lib" -find_library("upb.json_pic", "upb_json_printer_init", upb_path + "/lib") or - raise "Can't find upb.pb lib" - -$objs = ["protobuf.o", "defs.o", "storage.o", "message.o", - "repeated_field.o", "encode_decode.o"] - -create_makefile("protobuf_c") |