1 MRuby::Gem::Specification.new('mruby-socket') do |spec|
3 spec.authors = 'Internet Initiative Japan'
4 spec.summary = 'standard socket class'
6 spec.cc.include_paths << "#{build.root}/src"
7 #spec.cc.defines << "HAVE_SA_LEN=0"
9 # If Windows, use winsock
10 if ( /mswin|mingw|win32/ =~ RUBY_PLATFORM ) then
11 spec.linker.libraries << "wsock32"
12 spec.linker.libraries << "ws2_32"
15 spec.add_dependency('mruby-io', :core => 'mruby-io')
16 spec.add_dependency('mruby-pack', :core => 'mruby-pack')
17 # spec.add_dependency('mruby-mtest')