Commit 437aa216 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #783 from masuidrive/move_mrbgems

Moved mrbgems examples
parents 47d7cce6 9352e4b4
...@@ -67,7 +67,7 @@ Or ...@@ -67,7 +67,7 @@ Or
mruby contains a package manager called *mrbgems*. To create extensions mruby contains a package manager called *mrbgems*. To create extensions
in C and/or Ruby you should create a *GEM*. You will find a complete in C and/or Ruby you should create a *GEM*. You will find a complete
documentation with examples under *doc/mrbgems*. documentation with examples under *examples/mrbgems*.
## License ## License
......
...@@ -3,11 +3,11 @@ MRuby::Build.new do |conf| ...@@ -3,11 +3,11 @@ MRuby::Build.new do |conf|
toolchain :gcc toolchain :gcc
# Use mrbgems # Use mrbgems
# conf.gem 'doc/mrbgems/ruby_extension_example' # conf.gem 'examples/mrbgems/ruby_extension_example'
# conf.gem 'doc/mrbgems/c_extension_example' do |g| # conf.gem 'examples/mrbgems/c_extension_example' do |g|
# g.cc.flags << '-g' # append cflags in this gem # g.cc.flags << '-g' # append cflags in this gem
# end # end
# conf.gem 'doc/mrbgems/c_and_ruby_extension_example' # conf.gem 'examples/mrbgems/c_and_ruby_extension_example'
# conf.gem :github => 'masuidrive/mrbgems-example', :branch => 'master' # conf.gem :github => 'masuidrive/mrbgems-example', :branch => 'master'
# conf.gem :git => 'git@github.com:masuidrive/mrbgems-example.git', :branch => 'master', :options => '-v' # conf.gem :git => 'git@github.com:masuidrive/mrbgems-example.git', :branch => 'master', :options => '-v'
...@@ -74,5 +74,5 @@ end ...@@ -74,5 +74,5 @@ end
# conf.cc.flags << "-m32" # conf.cc.flags << "-m32"
# conf.linker.flags << "-m32" # conf.linker.flags << "-m32"
# #
# conf.gem 'doc/mrbgems/c_and_ruby_extension_example' # conf.gem 'examples/mrbgems/c_and_ruby_extension_example'
# end # end
...@@ -15,7 +15,7 @@ To add a GEM into the build_config.rb add the following line for example: ...@@ -15,7 +15,7 @@ To add a GEM into the build_config.rb add the following line for example:
You can also use a relative path which would be relative from the mruby root: You can also use a relative path which would be relative from the mruby root:
conf.gem 'doc/mrbgems/ruby_extension_example' conf.gem 'examples/mrbgems/ruby_extension_example'
A remote GIT repository location for a GEM is also supported: A remote GIT repository location for a GEM is also supported:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment