77 Commits

Author SHA1 Message Date
Yukihiro "Matz" Matsumoto 33742d941f Move build_config.rb -> build_config/default.rb; ref #5098
In addition, update the documents referring `build_config.rb` which is
no longer used. The new `build_config.rb` describes the new configuration
structure in the comment.
2020-10-29 11:49:05 +09:00
KOBAYASHI Shuji 81c2108819 Revert MRUBY_TARGET mechanism; ref #5096
* In explanation of mruby, the expression `build_config.rb` is frequently
  used including official documents, so I think that it will not make sense
  if the file is no longer used.
* The `MRUBY_TARGET` mechanism seems to have little improvement, so I don't
  think it should be changed to avoid unnecessary confusion.
* `MRUBY_TARGET` and `MRuby.targets` represent somewhat different things,
  so using the same term "target" is a bit confusing.

The mechanism that can be written short when using a file under
`build_config` (renamed from `target`) directory remains
(`build_config/${MRUBY_CONFIG}.rb` is used if the path specified
in `MRUBY_CONFIG` doesn't exist).
2020-10-19 15:03:22 +09:00
Yukihiro "Matz" Matsumoto fdbfeaf533 Build process updated:
You have to specify `TARGET` to specify a configuration, e.g.

```
rake TARGET=host-debug all test
```

When you port `mruby` to a new configuration:
1. copy an existing configuration under `target` directory
2. modify the new configuration file
3. build using the new configuration
4. send PR if you please
2020-10-12 16:20:47 +09:00
Dominic Sisneros e3875ae8c5 build when directories and files have spaces
Modified the build to quote filenames so that it builds when files have spaces
2020-04-01 11:55:35 -06:00
Takeshi Watanabe c138b9ea30 Use mruby-onig-regexp instead in example 2019-08-20 23:52:21 +09:00
KOBAYASHI Shuji 31f1b4a553 Remove explicit set of DISABLE_GEMS
`DISABLE_GEMS` is automatically set (or unset); ref #790
2019-02-23 18:29:37 +09:00
Yukihiro "Matz" Matsumoto 54cd2623b3 Turn off enable_debug flag in build_config.rb by default.
This will improve the default performance of mruby; fix #4045
2018-06-20 15:24:46 +09:00
Yukihiro "Matz" Matsumoto 3f9d00ded3 comment out bench build from standard build_config.rb 2017-10-28 00:29:30 +09:00
Yukihiro "Matz" Matsumoto 6420951463 Update example lines of mrbgems in build_config.rb; ref #3414 2017-01-25 15:38:25 +09:00
Takashi Sawanaka fb1c4b3ba7 Fix broken msvc build 2016-07-23 11:57:36 +09:00
Zachary Scott aa90ad57fe Add default benchmark build config 2016-03-04 16:14:13 +09:00
Zachary Scott acdfcfe256 Fix MRB_ENABLE_DEBUG_HOOK config typo left from 4440566
/cc #3014
2015-11-17 11:43:37 +09:00
Yukihiro "Matz" Matsumoto 4440566b95 DISABLE_STDIO/ENABLE_DEBUG macros to rename; close #3014
changes:
 * rename DISABLE_STDIO -> MRB_DISABLE_STDIO
 * rename ENABLE_DEBUG -> MRB_ENABLE_DEBUG_HOOK
 * no more opposite macro definitions (e.g. ENABLE_STDIO, DISABLE_DEBUG).
 * rewrite above macro references throughout the code.
 * update documents
2015-11-17 07:30:34 +09:00
Yukihiro "Matz" Matsumoto 4e63ea9649 Merge pull request #3011 from Mav7/master
Added more YARD docs to mruby.h
2015-11-15 05:10:52 +09:00
Mav7 66a839eb54 Added more YARD docs to mruby.h 2015-11-14 05:37:10 -05:00
Yukihiro "Matz" Matsumoto 9c108002bf Merge pull request #3008 from Mav7/master
Added YARD documentation in mruby.h
2015-11-10 09:50:15 +09:00
Mav7 27146dca16 Added YARD documentation in mruby.h 2015-11-09 12:16:14 -05:00
Ralph Desir(Mav7) 12c24e0e89 got rid of dummy gem 2015-10-15 19:46:25 -04:00
Ralph Desir(Mav7) d16912681a updated YARD docs on mruby.h 2015-10-15 19:41:45 -04:00
Yukihiro "Matz" Matsumoto 83922d0bbb use visualcpp toolchain for test as well 2015-10-16 00:18:36 +09:00
Ralph Desir 2df9786f33 got rid of dummy gem i was testing 2015-10-14 22:48:49 -04:00
Ralph Desir(Mav7) a5b416e2ce Added documentation for mrb_undef_method 2015-10-14 02:50:12 -04:00
Jun Hiroe 6ced9c3752 Revert 7b5f8b0 except removing trailing spaces 2015-09-05 00:08:12 +09:00
Zachary Scott bacb826868 Add build_mrbtest after config block is evaluated
This allows us to add `enable_test` anywhere in a build target,
without having to worry about the order in which they are included.

Previously, there was a bug that occured when adding 'mruby-test' gem
to dependencies before additional gems.

Instead of adding the 'mruby-test' gem dependency manually to a test build,
we now only need to call `enable_test` in the target. This also allows us to
call `test_enabled?` downstream when running mruby tests ourselves.

/cc #2924
2015-09-03 01:02:53 -04:00
Yukihiro "Matz" Matsumoto 7b5f8b0728 remove trailing spaces from bc9c47d5 2015-09-03 01:39:17 +09:00
Zachary Scott 133d57cb0d Add mruby-test build config and update :test task to use mrbgem binary
Removed old mrbgems_test.rake which was merged into mrbgem spec
2015-08-22 10:21:52 -04:00
mimaki e5bacc03f2 Add mruby debugger (mrdb) 2014-11-18 23:33:32 +09:00
Daniel Bovensiepen 874bec2af5 Implement :checksum_hash mrbgem option.
This allows to use a mgem with a specific checksum hash.
The following modification were necessary to implement this
function:
  - add run_checkout build command to use 'git checkout'
  - skip shallow copy in case checksum_hash is used
  - make 'master' the default branch if branch isn't defined
2014-04-20 05:39:40 +08:00
take_cheeze 604134e57d Make bintest enabling like other enable_xxx methods. 2014-04-09 13:59:39 +09:00
kyab a2bd5fdbf4 Add detection of VC++2010 in build_config.rb 2014-04-05 19:41:36 +09:00
take_cheeze 0c8bac5a38 revert wrong build_config.rb 2014-03-01 20:05:31 +09:00
take_cheeze 1985f1ace9 fix compile error of min/max macro 2014-03-01 20:05:29 +09:00
Yukihiro "Matz" Matsumoto d7960bf2a9 resolve conflict in travis_config.rb 2014-02-10 09:50:32 +09:00
Yukihiro "Matz" Matsumoto 92570a96b0 add enable_debug to build_config.rb 2014-01-23 14:25:54 +09:00
Per Lundberg 172cd281ba Automatically detect toolchain if it is visualcpp, and hence we drop vs2010.rake altogether - it’s no longer needed. 2013-11-22 22:17:01 +02:00
fleuria 05fb139d28 add a comment for enable_bintest in build_config.rb 2013-11-16 15:13:58 +08:00
fleuria 995e0f89cf add regression for #1572 2013-11-16 15:05:15 +08:00
Yukihiro "Matz" Matsumoto 1b6b00e2d0 remove unnecessary spaces 2013-07-31 11:52:34 +09:00
Yukihiro "Matz" Matsumoto 95fb1fd809 mrbc to take multiple files, preserving debug information if -g given; close #1243 2013-05-14 23:39:56 +09:00
Carson McDonald 9f43a25602 Add example of modifying mrbc options to add debug info 2013-05-13 10:16:52 -04:00
Daniel Bovensiepen 0ad9e5a37d FIX: Default build should use default GEMs and not all Core GEMs 2013-04-27 16:53:25 +08:00
Daniel Bovensiepen 498821cfdb Use gembox for default build 2013-04-27 16:50:08 +08:00
h2so5 2fa8bf4683 Add Symbol#to_proc, Symbol.all_symbols 2013-04-21 18:01:09 +09:00
h2so5 1a375c6fd4 Add mruby-proc-ext 2013-04-17 22:59:57 +09:00
h2so5 1d10912076 Add mruby-range-ext 2013-04-14 13:59:46 +09:00
Yukihiro "Matz" Matsumoto 65fccc2899 rename mruby,mirb gems to mruby-bin-{mruby,mirb} 2013-04-11 18:43:03 +09:00
Masaki Muranaka 9d8143f930 Move mirb and mruby to mrbgems. 2013-04-11 15:22:07 +09:00
Masaki Muranaka 6e28c0eb28 Add "test runner" support for cross builds.
"test runner" means target simulator like QEmu, GDB sim, and so on. Also "test runner" might be debug agents for real targets.
If you do not setup test_runner, Rake will work same as before.
2013-04-07 01:06:50 +09:00
MATSUMOTO Ryosuke 84f8a561b1 Activated mruby-random 2013-03-27 10:52:34 +09:00
mattn d9bee07c49 mruby-sprintf should precede mruby-print 2013-03-25 21:20:04 +09:00