blob: c4816d4ce3b68e8ca8e519b70a8923a242f3d64b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
as_cxx_srcs = %w[vm error gc].map{|name| "#{MRUBY_ROOT}/src/#{name}.c"}
MRuby.each_target do
objs = Dir.glob("#{MRUBY_ROOT}/src/*.c").map do |src|
dst = src.pathmap("#{build_dir}/src/%n")
if cxx_exception_enabled? && as_cxx_srcs.include?(src)
compile_as_cxx(src, "#{dst}.cxx")
else
objfile(dst)
end
end
self.libmruby_objs << objs
file libmruby_core_static => objs do |t|
archiver.run t.name, t.prerequisites
end
end
|