Permalink
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (22 sloc) 701 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 :clang
[conf.cc, conf.cxx, conf.objc].each do |cc|
cc.defines << %w()
end
conf.gem :git => 'https://github.com/mobiruby/mruby-cfunc.git' do |g|
# g.use_pkg_config
g.download_libffi
end
conf.gem "#{root}/mrbgems/mruby-print"
conf.gem "#{root}/mrbgems/mruby-enum-ext"
conf.gem File.expand_path(File.dirname(__FILE__))
end