Created
January 19, 2016 19:52
-
-
Save toch/18de963fed6d94b463a1 to your computer and use it in GitHub Desktop.
mruby minimum Rakefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
APP_ROOT=ENV["APP_ROOT"] || Dir.pwd | |
# avoid redefining constants in mruby Rakefile | |
mruby_root=File.expand_path(ENV["MRUBY_ROOT"] || "#{APP_ROOT}/mruby") | |
mruby_config=File.expand_path(ENV["MRUBY_CONFIG"] || "build_config.rb") | |
ENV['MRUBY_ROOT'] = mruby_root | |
ENV['MRUBY_CONFIG'] = mruby_config | |
Rake::Task[:mruby].invoke unless Dir.exist?(mruby_root) | |
Dir.chdir(mruby_root) | |
load "#{mruby_root}/Rakefile" | |
desc "compile binary" | |
task :compile => [:all] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment