From 161e2de06f8f9987d6a5a0eefe7f997ce89950ef Mon Sep 17 00:00:00 2001 From: SHIBATA Hiroshi Date: Wed, 12 Jul 2017 10:27:50 +0900 Subject: Added rake-compiler-dock for mingw builds --- Rakefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index a72ca50..c5d78f2 100644 --- a/Rakefile +++ b/Rakefile @@ -27,7 +27,15 @@ else require 'rake/extensiontask' Rake::ExtensionTask.new("psych") do |ext| ext.lib_dir = File.join(*['lib', ENV['FAT_DIR']].compact) + ext.cross_compile = true + ext.cross_platform = %w[x86-mingw32 x64-mingw32] end end +task 'gem:native' do + require 'rake_compiler_dock' + sh "bundle package" # Avoid repeated downloads of gems by using gem files from the host. + RakeCompilerDock.sh "bundle --local && rake cross native gem" +end + task :default => [:compile, :test] -- cgit v1.2.3