about summary refs log tree commit homepage
path: root/Rakefile
diff options
context:
space:
mode:
authorzedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9>2006-02-15 23:17:23 +0000
committerzedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9>2006-02-15 23:17:23 +0000
commit615bdc0298de8f35055dd478675210f458d95422 (patch)
tree8682a2896d650a3a7e7bd25f6ca837a2a39db505 /Rakefile
parent72e46136b52f82d7b8c0fb1930eda038ed43adde (diff)
downloadunicorn-615bdc0298de8f35055dd478675210f458d95422.tar.gz
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@40 19e92222-5c0b-0410-8929-a290d50e31e9
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile17
1 files changed, 16 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 872d911..b568829 100644
--- a/Rakefile
+++ b/Rakefile
@@ -8,7 +8,8 @@ require 'fileutils'
 include FileUtils
 
 setup_tests
-setup_clean ["ext/http11/Makefile", "pkg", "lib/*.bundle", "ext/http11/*.bundle", "doc/site/output"]
+setup_clean ["ext/http11/*.{bundle,so,obj,pdb,lib,def,exp}", "ext/http11/Makefile", "pkg", "lib/*.bundle", "*.gem", "doc/site/output", ".config"]
+
 setup_rdoc ['README', 'LICENSE', 'COPYING', 'lib/*.rb', 'doc/**/*.rdoc', 'ext/http11/http11.c']
 
 desc "Does a full compile, test run"
@@ -34,3 +35,17 @@ test_file = "test/test_ws.rb"
 setup_gem("mongrel", "0.3.3",  "Zed A. Shaw", summary, ['mongrel_rails'], test_file) do |spec|
   spec.add_dependency('daemons', '>= 0.4.2')
 end
+
+desc "Build a binary gem for Win32"
+task :win32_gem => [:clean, :compile, :test, :package_win32]
+
+task :package_win32 do
+  setup_win32_gem("mongrel", "0.3.3",  "Zed A. Shaw", summary,
+                  ['mongrel_rails'], test_file) do |spec|
+    spec.add_dependency('daemons', '>= 0.4.2')
+    spec.files << 'ext/http11/http11.so'
+    spec.extensions = []
+    spec.platform = Gem::Platform::WIN32
+  end
+end
+