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