Cross compile osx, linux or win32 binary of mruby on Mac OSX.
Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
mrbgem.rake

README.md

Cross Compile on Mac OSX for mruby

Cross compile osx, linux or win32 binary of mruby on Mac OSX.

Donwload and install by mrbgems

Donwload mrbgem

git clone https://github.com/matsumoto-r/mruby-cross-compile-on-mac-osx.git

add conf.gem line to build_config.rb

MRuby::Build.new do |conf|

  # ... (snip) ...

  # the last line of conf.gem
  load '/path/to/mruby-cross-compile-on-mac-osx/mrbgem.rake'
end

Download and Install Cross Compiler on Mac OSX

Cross Compile with MRUBY_CROSS_OS Env

for linux

rake MRUBY_CROSS_OS=linux

for osx

rake MRUBY_CROSS_OS=osx

for win32

rake MRUBY_CROSS_OS=win32

then, generate mruby binaries into mruby/build/{linux,osx,win32}/

License

under the MIT License: