[Groonga-commit] groonga/groonga [master] [windows] add missing gcc related DLLs. [groonga-dev, 00686]

Back to archive index

null+****@clear***** null+****@clear*****
2012年 1月 31日 (火) 16:38:41 JST


Kouhei Sutou	2012-01-31 16:38:41 +0900 (Tue, 31 Jan 2012)

  New Revision: 930571454088d50e582ea6b7fe95975abecab520

  Log:
    [windows] add missing gcc related DLLs. [groonga-dev,00686]
    
    Reported by Suzuki-san. Thanks!!!

  Modified files:
    packages/windows/Rakefile

  Modified: packages/windows/Rakefile (+23 -1)
===================================================================
--- packages/windows/Rakefile    2012-01-31 14:47:50 +0900 (cf7319b)
+++ packages/windows/Rakefile    2012-01-31 16:38:41 +0900 (076aa5a)
@@ -162,7 +162,29 @@ namespace :build do
       cp(files, groonga_license_dir)
     end
   end
+
+  task(:pre)
+  task(:post)
 end
 
+namespace :gcc do
+  namespace :dll do
+    desc "Bundle GCC related DLLs"
+    task(:bundle) do
+      dlls = ["libgcc_s_sjlj-1.dll", "libstdc++-6.dll"]
+      dlls.each do |dll|
+        full_path = `#{host}-g++ -print-file-name=#{dll}`.strip
+        cp(full_path, (binary_dir + "bin").to_s)
+      end
+    end
+  end
+end
+
+task("build:post" => "gcc:dll:bundle")
+
 desc "Build MeCab and groonga and install them into #{dist_dir}/."
-task(:build => ["build:mecab", "build:mecab_dict", "build:groonga"])
+task(:build => ["build:pre",
+                "build:mecab",
+                "build:mecab_dict",
+                "build:groonga",
+                "build:post"])




Groonga-commit メーリングリストの案内
Back to archive index