sigar/bindings/ruby/extconf.rb
2007-09-03 00:49:22 +00:00

17 lines
363 B
Ruby

require 'mkmf'
extension_name = 'rbsigar'
installdir = '../java/sigar-bin'
#XXX hardwired for the moment
libname = 'sigar-universal-macosx'
$CPPFLAGS += ' -I' + installdir + '/include'
$LOCAL_LIBS += '-L' + installdir + '/lib -l' + libname
dir_config(extension_name)
system('perl -Mlib=.. -MSigarWrapper -e generate Ruby .')
create_makefile(extension_name)