From 078d24d4d3f7b5aac436fb70e341e1a7668fdbbb Mon Sep 17 00:00:00 2001 From: take_cheeze Date: Mon, 22 Jun 2015 02:24:15 +0900 Subject: Add documentation to new mgem features. --- doc/mrbgems/README.md | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'doc/mrbgems') diff --git a/doc/mrbgems/README.md b/doc/mrbgems/README.md index 101177b13..b24be74e0 100644 --- a/doc/mrbgems/README.md +++ b/doc/mrbgems/README.md @@ -26,6 +26,15 @@ conf.gem :github => 'masuidrive/mrbgems-example', :branch => 'master' conf.gem :bitbucket => 'mruby/mrbgems-example', :branch => 'master' ``` +To use mrbgem from [mgem-list](https://github.com/mruby/mgem-list) use `:mgem` option: +```ruby +conf.gem :mgem => 'mruby-yaml' +conf.gem :mgem => 'yaml' # 'mruby-' prefix could be ignored +``` + +If there is missing dependencies, mrbgem dependencies solver will reference +mrbgem from core or mgem-list. + To pull all gems from remote GIT repository on build, call ```./minirake -p```, or ```./minirake --pull-gems```. -- cgit v1.2.3 From e344c6ab6d7b3d6a8ffcec6f7f96aeba6c5fdeda Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Mon, 22 Jun 2015 10:09:04 +0900 Subject: [ci skip] replace "ignored" by "omitted"; ref #2846 --- doc/mrbgems/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/mrbgems') diff --git a/doc/mrbgems/README.md b/doc/mrbgems/README.md index b24be74e0..e0c60daf2 100644 --- a/doc/mrbgems/README.md +++ b/doc/mrbgems/README.md @@ -29,7 +29,7 @@ conf.gem :bitbucket => 'mruby/mrbgems-example', :branch => 'master' To use mrbgem from [mgem-list](https://github.com/mruby/mgem-list) use `:mgem` option: ```ruby conf.gem :mgem => 'mruby-yaml' -conf.gem :mgem => 'yaml' # 'mruby-' prefix could be ignored +conf.gem :mgem => 'yaml' # 'mruby-' prefix could be omitted ``` If there is missing dependencies, mrbgem dependencies solver will reference @@ -151,7 +151,7 @@ MRuby::Gem::Specification.new('c_and_ruby_extension_example') do |spec| # Use any version of mruby-uv from github. spec.add_dependency('mruby-uv', '>= 0.0.0', :github => 'mattn/mruby-uv') - # Use latest mruby-onig-regexp from github. (version requirements can be ignored) + # Use latest mruby-onig-regexp from github. (version requirements can be omitted) spec.add_dependency('mruby-onig-regexp', :github => 'mattn/mruby-onig-regexp') end ``` -- cgit v1.2.3 From 54c853ff4aed510d777767dcefd9da5e05d6f505 Mon Sep 17 00:00:00 2001 From: xuejianqing Date: Sun, 26 Jul 2015 21:52:56 +0800 Subject: update mrbgems doc --- doc/mrbgems/README.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'doc/mrbgems') diff --git a/doc/mrbgems/README.md b/doc/mrbgems/README.md index e0c60daf2..f75231f71 100644 --- a/doc/mrbgems/README.md +++ b/doc/mrbgems/README.md @@ -198,17 +198,21 @@ end In case your GEM has more complex build requirements you can use the following options additionally inside of your GEM specification: -* `spec.cflags` (C compiler flags) -* `spec.mruby_cflags` (global C compiler flags for everything) -* `spec.mruby_ldflags` (global linker flags for everything) -* `spec.mruby_libs` (global libraries for everything) -* `spec.mruby_includes` (global includes for everything) +* `spec.cc.flags` (C compiler flags) +* `spec.cc.defines` (C compiler defines) +* `spec.cc.include_paths` (C compiler include paths) +* `spec.linker.flags` (Linker flags) +* `spec.linker.libraries` (Linker libraries) +* `spec.linker.library_paths` (Linker additional library path) +* `spec.bins` (Generate binary file) * `spec.rbfiles` (Ruby files to compile) * `spec.objs` (Object files to compile) * `spec.test_rbfiles` (Ruby test files for integration into mrbtest) * `spec.test_objs` (Object test files for integration into mrbtest) * `spec.test_preload` (Initialization files for mrbtest) +You also can use `spec.mruby.cc` and `spec.mruby.linker` to add extra global parameters for compiler and linker. + ### include_paths and dependency Your GEM can export include paths to another GEMs that depends on your GEM. -- cgit v1.2.3