Apply PIE to nghttpx
[platform/upstream/nghttp2.git] / third-party / mruby / mrbgems / mruby-socket / mrbgem.rake
1 MRuby::Gem::Specification.new('mruby-socket') do |spec|
2   spec.license = 'MIT'
3   spec.authors = 'Internet Initiative Japan'
4   spec.summary = 'standard socket class'
5
6   spec.cc.include_paths << "#{build.root}/src"
7   #spec.cc.defines << "HAVE_SA_LEN=0"
8
9   # If Windows, use winsock
10   if ( /mswin|mingw|win32/ =~ RUBY_PLATFORM ) then
11     spec.linker.libraries << "wsock32"
12     spec.linker.libraries << "ws2_32"
13   end
14
15   spec.add_dependency('mruby-io', :core => 'mruby-io')
16   spec.add_dependency('mruby-pack', :core => 'mruby-pack')
17   # spec.add_dependency('mruby-mtest')
18 end