Setup devkit for rake-compiler/Windows

This commit is contained in:
Yorick Peterse 2015-03-22 15:26:59 +01:00
parent 9efe1e7a41
commit 88f3dfc749
1 changed files with 12 additions and 0 deletions

View File

@ -3,6 +3,18 @@ require 'bundler/gem_tasks'
require 'digest/sha2'
require 'rake/clean'
if Gem.win_platform?
task :devkit do
begin
require 'devkit'
rescue LoadError
warn 'Failed to load devkit, installation might fail'
end
end
task :compile => [:devkit]
end
GEMSPEC = Gem::Specification.load('oga.gemspec')
if RUBY_PLATFORM == 'java'