source: EcnlProtoTool/trunk/mruby-1.2.0/src/mruby_core.rake@ 286

Last change on this file since 286 was 270, checked in by coas-nagasima, 7 years ago

mruby版ECNLプロトタイピング・ツールを追加

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-ruby
File size: 673 bytes
Line 
1MRuby.each_target do
2 current_dir = File.dirname(__FILE__).relative_path_from(Dir.pwd)
3 relative_from_root = File.dirname(__FILE__).relative_path_from(MRUBY_ROOT)
4 current_build_dir = "#{build_dir}/#{relative_from_root}"
5
6 objs = Dir.glob("#{current_dir}/*.c").map { |f|
7 next nil if cxx_abi_enabled? and f =~ /(error|vm).c$/
8 objfile(f.pathmap("#{current_build_dir}/%n"))
9 }.compact
10
11 if cxx_abi_enabled?
12 objs += %w(vm error).map { |v| compile_as_cxx "#{current_dir}/#{v}.c", "#{current_build_dir}/#{v}.cxx" }
13 end
14 self.libmruby << objs
15
16 file libfile("#{build_dir}/lib/libmruby_core") => objs do |t|
17 archiver.run t.name, t.prerequisites
18 end
19end
Note: See TracBrowser for help on using the repository browser.