summaryrefslogtreecommitdiffhomepage
path: root/doc
diff options
context:
space:
mode:
authorxuejianqing <[email protected]>2015-07-26 21:52:56 +0800
committerxuejianqing <[email protected]>2015-07-26 21:52:56 +0800
commit54c853ff4aed510d777767dcefd9da5e05d6f505 (patch)
treead1289feb9ad14821b50b6de9e402089d025839e /doc
parentc9168341bfa1380a179984049da8b279fe5563d6 (diff)
downloadmruby-54c853ff4aed510d777767dcefd9da5e05d6f505.tar.gz
mruby-54c853ff4aed510d777767dcefd9da5e05d6f505.zip
update mrbgems doc
Diffstat (limited to 'doc')
-rw-r--r--doc/mrbgems/README.md14
1 files changed, 9 insertions, 5 deletions
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.