mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
14 lines
377 B
Ruby
14 lines
377 B
Ruby
MRuby::Gem::Specification.new('mruby-dir') do |spec|
|
|
spec.license = 'MIT'
|
|
spec.authors = 'Internet Initiative Japan Inc.'
|
|
|
|
spec.cc.include_paths << "#{build.root}/src"
|
|
|
|
case RUBY_PLATFORM
|
|
when /mingw|mswin/
|
|
spec.objs += Dir.glob("#{dir}/src/Win/*.{c,cpp,m,asm,S}").map { |f|
|
|
objfile(f.relative_path_from(dir).pathmap("#{build_dir}/%X"))
|
|
}
|
|
end
|
|
end
|