Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (18 sloc) 540 Bytes
#!/usr/bin/env ruby
if __FILE__ == $PROGRAM_NAME
require 'fileutils'
FileUtils.mkdir_p 'tmp'
unless File.exists?('tmp/mruby')
system 'git clone https://github.com/mruby/mruby.git tmp/mruby'
end
exit system(%Q[cd tmp/mruby; MRUBY_CONFIG=#{File.expand_path __FILE__} ./minirake #{ARGV.join(' ')}])
end
MRuby::Build.new do |conf|
toolchain :gcc
conf.gembox 'default'
conf.gem "#{root}/mrbgems/mruby-eval"
conf.gem File.expand_path(File.dirname(__FILE__)) do |g|
# g.use_pkg_config
g.download_libffi
end
end