diff options
author | Josh Haberman <jhaberman@gmail.com> | 2014-08-01 15:32:59 -0700 |
---|---|---|
committer | Josh Haberman <jhaberman@gmail.com> | 2014-08-01 15:32:59 -0700 |
commit | 8405e5e38948bc61cad7586e62c566232e1de6d9 (patch) | |
tree | 0d214505c99c4b74a1e1655bce95877e267dde82 /upb/bindings/ruby/extconf.rb | |
parent | 43f2455cbda22c513f2885d760ca2766b23e100f (diff) |
Beginnings of a prototype Ruby extension.
Diffstat (limited to 'upb/bindings/ruby/extconf.rb')
-rw-r--r-- | upb/bindings/ruby/extconf.rb | 7 |
1 files changed, 7 insertions, 0 deletions
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") |