Setup devkit for rake-compiler/Windows
This commit is contained in:
parent
9efe1e7a41
commit
88f3dfc749
12
Rakefile
12
Rakefile
|
@ -3,6 +3,18 @@ require 'bundler/gem_tasks'
|
||||||
require 'digest/sha2'
|
require 'digest/sha2'
|
||||||
require 'rake/clean'
|
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')
|
GEMSPEC = Gem::Specification.load('oga.gemspec')
|
||||||
|
|
||||||
if RUBY_PLATFORM == 'java'
|
if RUBY_PLATFORM == 'java'
|
||||||
|
|
Loading…
Reference in New Issue