Last change
on this file 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:
669 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|
|
---|
[331] | 7 | next nil if cxx_exception_enabled? and f =~ /(error|vm).c$/
|
---|
[270] | 8 | objfile(f.pathmap("#{current_build_dir}/%n"))
|
---|
| 9 | }.compact
|
---|
| 10 |
|
---|
[331] | 11 | if cxx_exception_enabled?
|
---|
[270] | 12 | objs += %w(vm error).map { |v| compile_as_cxx "#{current_dir}/#{v}.c", "#{current_build_dir}/#{v}.cxx" }
|
---|
| 13 | end
|
---|
[439] | 14 | self.libmruby_objs << objs
|
---|
[270] | 15 |
|
---|
[439] | 16 | file libmruby_core_static => objs do |t|
|
---|
[270] | 17 | archiver.run t.name, t.prerequisites
|
---|
| 18 | end
|
---|
| 19 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.