-
Notifications
You must be signed in to change notification settings - Fork 0
/
emruby.cfg
48 lines (38 loc) · 1.07 KB
/
emruby.cfg
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
MRuby::Toolchain.new('emscripten') do |conf|
toolchain :clang
conf.cc.command = 'emcc'
conf.cxx.command = 'em++'
conf.linker.command = 'em++'
conf.archiver.command = 'emar'
# conf.cc.flags << '-DMRB_INT64'
conf.gembox 'default'
conf.gem :core => 'mruby-binding'
end
MRuby::CrossBuild.new('app') do |conf|
conf.build_dir = 'builds/embuild'
toolchain :emscripten
conf.cc.command = 'emcc'
conf.cxx.command = 'em++'
conf.linker.command = 'em++'
conf.archiver.command = 'emar'
conf.compilers.each do |c|
# c.defines += %w(MRB_GC_FIXED_ARENA)
# c.flags << '-DMRB_INT64'
c.flags << '-Wall'
c.flags << '-Wno-warn-absolute-paths'
c.flags << '--bind'
# c.flags << '-s LINKABLE=1'
# c.flags << '-s EXPORT_ALL=1'
# c.flags << '<%= optimization_argument %>'
# c.flags << '<%= closure_argument %>'
# c.flags << '<%= debug_argument %>'
# <% for flag in flags %>
# c.flags << '<%= flag %>'
# <% end %>
end
# <% if enable_debug %>
# conf.enable_debug
# <% end %>
# conf.enable_bintest
# conf.enable_test
end