| 1 | MRuby::Build.new do |
| 2 | conf.toolchain :gcc |
| 3 | |
| 4 | # include the default GEMs |
| 5 | conf.gembox 'default' |
| 6 | |
| 7 | conf.enable_bintest |
| 8 | conf.enable_test |
| 9 | |
| 10 | # Configuration macros |
| 11 | conf.cc.defines = %w(MRB_USE_READLINE MRB_UTF8_STRING) |
| 12 | end |
| 13 | |
| 14 | MRuby::Build.new('host-debug') do |
| 15 | conf.toolchain :gcc |
| 16 | |
| 17 | conf.enable_debug |
| 18 | |
| 19 | # include the default GEMs |
| 20 | conf.gembox 'default' |
| 21 | |
| 22 | # Configuration macros |
| 23 | conf.cc.defines = %w(MRB_USE_READLINE MRB_UTF8_STRING MRB_USE_DEBUG_HOOK) |
| 24 | |
| 25 | # Generate mruby debugger command (require mruby-eval) |
| 26 | conf. |
| 27 | end |