[Groonga-commit] ranguba/rroonga at 5525f6d [master] windows: split into 2 tasks

Back to archive index

Hiroshi Hatake null+****@clear*****
Tue Oct 6 21:51:22 JST 2015


Hiroshi Hatake	2015-09-15 00:44:36 +0900 (Tue, 15 Sep 2015)

  New Revision: 5525f6d700cb21612f67ec6d101b65f1deff5499
  https://github.com/ranguba/rroonga/commit/5525f6d700cb21612f67ec6d101b65f1deff5499

  Merged 1e2a565: Merge pull request #108 from cosmo0920/use-rake-compiler-dock

  Message:
    windows: split into 2 tasks

  Modified files:
    Rakefile

  Modified: Rakefile (+21 -2)
===================================================================
--- Rakefile    2015-09-14 23:51:14 +0900 (dfc0d4e)
+++ Rakefile    2015-09-15 00:44:36 +0900 (5539d2a)
@@ -148,11 +148,30 @@ namespace :clean do
   end
 end
 
+def target_rubies
+  "2.0.0:2.1.6:2.2.2"
+end
+
 desc "Build cross compile binary with rake-compiler-dock"
 namespace :build do
-  task :windows do
+  task :windows => [:windows_x86, :windows_x64]
+end
+
+desc "Build cross compile binary with rake-compiler-dock for i386"
+namespace :build do
+  task :windows_x86 do
+    require "rake_compiler_dock"
+    rm_rf binary_dir
+    RakeCompilerDock.sh "gem install yard packnga pkg-config && bundle && bundle exec rake clean && rake cross native gem RUBY_CC_VERSION=#{target_rubies}"
+  end
+end
+
+desc "Build cross compile binary with rake-compiler-dock for x64"
+namespace :build do
+  task :windows_x64 do
     require "rake_compiler_dock"
-    RakeCompilerDock.sh "bundle && rake cross native gem RUBY_CC_VERSION=2.0.0:2.1.6:2.2.2"
+    rm_rf binary_dir
+    RakeCompilerDock.sh "gem install yard packnga pkg-config && bundle && bundle exec rake clean && RROONGA_USE_GROONGA_X64=true rake cross native gem RUBY_CC_VERSION=#{target_rubies}"
   end
 end
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index