Debian Codegraph @

vendor/mruby-source/mrbgems/mruby-bin-mrbc/mrbgem.rake

raw
1 MRuby::Gem::Specification.new 'mruby-bin-mrbc' do |spec|
2 spec.license = 'MIT'
3 spec.author = 'mruby developers'
4 spec.summary = 'mruby compiler executable'
5 spec.add_dependency 'mruby-compiler', :core => 'mruby-compiler'
6
7 exec = exefile("#{build.build_dir}/bin/mrbc")
8 mrbc_objs = Dir.glob("#{spec.dir}/tools/mrbc/*.c").map { |f| objfile(f.pathmap("#{spec.build_dir}/tools/mrbc/%n")) }
9
10 file exec => mrbc_objs << build.libmruby_core_static do |t|
11 build.linker.run t.name, t.prerequisites
12 end
13
14 build.bins << 'mrbc'
15 end