MRuby::Gem::Specification.new('mruby-bin-mruby') do |spec|
  spec.license = 'MIT'
  spec.author  = 'mruby developers'
  spec.summary = 'mruby command'
  spec.bins = %w(mruby)
  spec.add_dependency('mruby-compiler', :core => 'mruby-compiler')
  spec.add_dependency('mruby-error', :core => 'mruby-error')

  if build.cxx_exception_enabled?
    @objs << build.compile_as_cxx("#{spec.dir}/tools/mruby/mruby.c", "#{spec.build_dir}/tools/mruby/mruby.cxx")
    @objs.delete_if { |v| v == objfile("#{spec.build_dir}/tools/mruby/mruby") }
  end
end
