summaryrefslogtreecommitdiffhomepage
path: root/mrbgem.rake
diff options
context:
space:
mode:
authorTomoyuki Sahara <[email protected]>2014-03-14 10:41:56 +0900
committerTomoyuki Sahara <[email protected]>2014-03-14 10:41:56 +0900
commit14031bdf44c255ecce805bb998b2f0d1e4dfe5a8 (patch)
tree7072f0f19ef8762ae3af6478dad3b35ba67bb858 /mrbgem.rake
parentf7c054bd39f0809641ab474771f0f85a5282c72e (diff)
parent39bd240116b2980f90f9d8f350e18311959db54b (diff)
downloadmruby-14031bdf44c255ecce805bb998b2f0d1e4dfe5a8.tar.gz
mruby-14031bdf44c255ecce805bb998b2f0d1e4dfe5a8.zip
Merge pull request #11 from pbosetti/master
Can build on VisualStudio, revised.
Diffstat (limited to 'mrbgem.rake')
-rw-r--r--mrbgem.rake8
1 files changed, 8 insertions, 0 deletions
diff --git a/mrbgem.rake b/mrbgem.rake
index 029af4d26..77ad101af 100644
--- a/mrbgem.rake
+++ b/mrbgem.rake
@@ -3,4 +3,12 @@ MRuby::Gem::Specification.new('mruby-io') do |spec|
spec.authors = 'Internet Initiative Japan Inc.'
spec.cc.include_paths << "#{build.root}/src"
+
+ case RUBY_PLATFORM
+ when /mingw|mswin/
+ spec.linker.libraries += ['Ws2_32']
+ #spec.cc.include_paths += ["C:/Windows/system/include"]
+ spec.linker.library_paths += ["C:/Windows/system"]
+ end
+
end