From 8405e5e38948bc61cad7586e62c566232e1de6d9 Mon Sep 17 00:00:00 2001 From: Josh Haberman Date: Fri, 1 Aug 2014 15:32:59 -0700 Subject: Beginnings of a prototype Ruby extension. --- upb/bindings/ruby/extconf.rb | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 upb/bindings/ruby/extconf.rb (limited to 'upb/bindings/ruby/extconf.rb') diff --git a/upb/bindings/ruby/extconf.rb b/upb/bindings/ruby/extconf.rb new file mode 100644 index 0000000..67fddba --- /dev/null +++ b/upb/bindings/ruby/extconf.rb @@ -0,0 +1,7 @@ +#!/usr/bin/ruby + +require 'mkmf' +find_header("upb/upb.h", "../../..") or raise "Can't find upb headers" +find_library("upb_pic", "upb_msgdef_new", "../..") or raise "Can't find upb lib" +$CFLAGS += " -Wall" +create_makefile("upb") -- cgit v1.2.3