source: EcnlProtoTool/trunk/mruby-2.1.1/mrbgems/mruby-bin-mrbc/mrbgem.rake@ 439

Last change on this file since 439 was 439, checked in by coas-nagasima, 4 years ago

mrubyを2.1.1に更新

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-ruby;charset=UTF-8
File size: 590 bytes
Line 
1MRuby::Gem::Specification.new 'mruby-bin-mrbc' do |spec|
2 spec.license = 'MIT'
3 spec.author = 'mruby developers'
4 spec.summary = 'mruby compiler executable'
5
6 spec.add_dependency 'mruby-compiler', :core => 'mruby-compiler'
7
8 exec = exefile("#{build.build_dir}/bin/mrbc")
9 mrbc_objs = Dir.glob("#{spec.dir}/tools/mrbc/*.c").map { |f| objfile(f.pathmap("#{spec.build_dir}/tools/mrbc/%n")) }.flatten
10
11 file exec => mrbc_objs + [build.libmruby_core_static] do |t|
12 build.linker.run t.name, t.prerequisites
13 end
14
15 build.bins << 'mrbc' unless build.bins.find { |v| v == 'mrbc' }
16end
Note: See TracBrowser for help on using the repository browser.