mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Moved mrbgems examples
This commit is contained in:
@@ -67,7 +67,7 @@ Or
|
||||
|
||||
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
|
||||
documentation with examples under *doc/mrbgems*.
|
||||
documentation with examples under *examples/mrbgems*.
|
||||
|
||||
## License
|
||||
|
||||
|
||||
+4
-4
@@ -3,11 +3,11 @@ MRuby::Build.new do |conf|
|
||||
toolchain :gcc
|
||||
|
||||
# Use mrbgems
|
||||
# conf.gem 'doc/mrbgems/ruby_extension_example'
|
||||
# conf.gem 'doc/mrbgems/c_extension_example' do |g|
|
||||
# conf.gem 'examples/mrbgems/ruby_extension_example'
|
||||
# conf.gem 'examples/mrbgems/c_extension_example' do |g|
|
||||
# g.cc.flags << '-g' # append cflags in this gem
|
||||
# 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 :git => 'git@github.com:masuidrive/mrbgems-example.git', :branch => 'master', :options => '-v'
|
||||
|
||||
@@ -74,5 +74,5 @@ end
|
||||
# conf.cc.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
|
||||
|
||||
@@ -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:
|
||||
|
||||
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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user