Navigation Menu

Skip to content

Commit

Permalink
windows: use rake-compiler-dock
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmo0920 committed Sep 14, 2015
1 parent 7f68cce commit f554758
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
11 changes: 3 additions & 8 deletions Rakefile
Expand Up @@ -148,16 +148,11 @@ namespace :clean do
end
end

desc "Build cross compile binary with Vagrant"
desc "Build cross compile binary with rake-compiler-dock"
namespace :build do
task :windows do
pkg_dir = "#{base_dir}/pkg"
mkdir pkg_dir unless File.exist?(pkg_dir)
cd "build/windows" do
sh("vagrant", "up")
cp(Dir.glob("pkg/rroonga-*-mingw32.gem"), pkg_dir)
sh("vagrant", "destroy", "-f")
end
require "rake_compiler_dock"
RakeCompilerDock.sh "bundle && rake cross native gem RUBY_CC_VERSION=2.0.0:2.1.6:2.2.2"
end
end

Expand Down
1 change: 1 addition & 0 deletions rroonga.gemspec
Expand Up @@ -89,6 +89,7 @@ Gem::Specification.new do |s|
s.add_development_dependency("test-unit-notify")
s.add_development_dependency("rake")
s.add_development_dependency("rake-compiler", [">= 0.9.5"])
s.add_development_dependency("rake-compiler-dock", ["~> 0.4.3"])
s.add_development_dependency("bundler")
s.add_development_dependency("yard")
s.add_development_dependency("packnga", [">= 1.0.0"])
Expand Down

0 comments on commit f554758

Please sign in to comment.