summaryrefslogtreecommitdiffhomepage
path: root/mrbgem.rake
diff options
context:
space:
mode:
authorPaolo Bosetti <[email protected]>2013-12-10 14:34:26 +0100
committerPaolo Bosetti <[email protected]>2013-12-10 14:34:26 +0100
commit23afaf02dc146346da823f85cea7a51263d0e2b7 (patch)
treef8eb81a88486f024a1473f37db85eadc964da0d8 /mrbgem.rake
parent5a59fd3a5c83395847448db333c9df9d253a158c (diff)
downloadmruby-23afaf02dc146346da823f85cea7a51263d0e2b7.tar.gz
mruby-23afaf02dc146346da823f85cea7a51263d0e2b7.zip
Made compatible with VisualStudio
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