From 88f3dfc7492e5c9a3df79dd8b5a70dcc618141e5 Mon Sep 17 00:00:00 2001 From: Yorick Peterse Date: Sun, 22 Mar 2015 15:26:59 +0100 Subject: [PATCH] Setup devkit for rake-compiler/Windows --- Rakefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Rakefile b/Rakefile index 50caeb2..11fbd55 100644 --- a/Rakefile +++ b/Rakefile @@ -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'