Last change
on this file since 321 was 321, checked in by coas-nagasima, 7 years ago |
文字コードを設定
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-ruby;charset=UTF-8
|
File size:
673 bytes
|
Rev | Line | |
---|
[270] | 1 | MRuby.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
|
---|
| 19 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.