summaryrefslogtreecommitdiff
path: root/upb/bindings/ruby/extconf.rb
blob: b105948222910e063519b04f7685cb2387f2246d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/ruby

require 'mkmf'

# Extra args are passed on the command-line.
$CFLAGS += (" " + ARGV[0])

find_header("upb/upb.h", "../../..") or raise "Can't find upb headers"
find_library("upb_pic", "upb_msgdef_new", "../../../lib") or raise "Can't find upb lib"
find_library("upb.descriptor_pic", "upb_descreader_init", "../../../lib") or raise "Can't find upb.descriptor lib"
find_library("upb.pb_pic", "upb_pbdecoder_init", "../../../lib") or raise "Can't find upb.pb lib"

create_makefile("upb")
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback