summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-io/mrbgem.rake
blob: bd20f6d20873cc106d468fc50980f76dc12a3b16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
MRuby::Gem::Specification.new('mruby-io') do |spec|
  spec.license = 'MIT'
  spec.authors = ['Internet Initiative Japan Inc.', 'mruby developers']
  spec.summary = 'IO and File class'

  spec.cc.include_paths << "#{build.root}/src"

  case RUBY_PLATFORM
  when /mingw|mswin|msys/
    spec.linker.libraries += ['Ws2_32']
    #spec.cc.include_paths += ["C:/Windows/system/include"]
    spec.linker.library_paths += ["C:/Windows/system"]
  end
  if build.kind_of?(MRuby::CrossBuild) && %w(x86_64-w64-mingw32 i686-w64-mingw32).include?(build.host_target)
    spec.linker.libraries += ['ws2_32']
  end
  spec.add_test_dependency 'mruby-time', core: 'mruby-time'
end