From 23afaf02dc146346da823f85cea7a51263d0e2b7 Mon Sep 17 00:00:00 2001 From: Paolo Bosetti Date: Tue, 10 Dec 2013 14:34:26 +0100 Subject: Made compatible with VisualStudio --- mrbgem.rake | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'mrbgem.rake') 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 -- cgit v1.2.3