Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 44 lines (34 sloc) 1.312 kb
6134e439 » kevwil
2008-01-17 sync with main repo, tweak rakefile(s) again for better win32 gem, ne…
1 RUBY_1_9 = RUBY_VERSION =~ /^1\.9/
ae5e7299 » kevwil
2008-01-21 ignore mac finder files, change constant to allow compile on windows
2 WIN = (RUBY_PLATFORM =~ /mswin|cygwin/)
6134e439 » kevwil
2008-01-17 sync with main repo, tweak rakefile(s) again for better win32 gem, ne…
3 SUDO = (WIN ? "" : "sudo")
34a5aac7 » kevwil
2008-01-13 a better sync with the main repo, change to unified Rakefile
4
6134e439 » kevwil
2008-01-17 sync with main repo, tweak rakefile(s) again for better win32 gem, ne…
5 require 'rake'
6 require 'rake/clean'
9d4f0256 » macournoyer
2009-09-05 Replace custom extension tasks w/ rake-compiler
7 require 'rake/extensiontask' # from rake-compiler gem
d25ad7de » josh
2009-09-05 lib/thin should expect lib/ to already be in the $LOAD_PATH. scripts …
8
9 $: << File.join(File.dirname(__FILE__), 'lib')
d4d96390 » macournoyer
2011-03-23 Only load what is needed in Rakefile.
10 require 'thin/version'
34a5aac7 » kevwil
2008-01-13 a better sync with the main repo, change to unified Rakefile
11
9d4f0256 » macournoyer
2009-09-05 Replace custom extension tasks w/ rake-compiler
12 # Load tasks in tasks/
6134e439 » kevwil
2008-01-17 sync with main repo, tweak rakefile(s) again for better win32 gem, ne…
13 Dir['tasks/**/*.rake'].each { |rake| load rake }
348931b4 » macournoyer
2007-11-15 Add rake task to create gem
14
d50a45e3 » macournoyer
2008-01-20 Improve specs stability.
15 task :default => :spec
59a972ce » macournoyer
2008-03-02 A couple refactorings in rake tasks.
16
4ad001ce » macournoyer
2009-09-05 Make cross compiling to win32 work under OS X, w00t!
17 Rake::ExtensionTask.new('thin_parser', Thin::GemSpec) do |ext|
2e9db13e » macournoyer
2009-12-07 Port fix for ; in path from Unicorn (http://git.bogomips.org/cgit/uni…
18 # enable cross compilation (requires cross compile toolchain)
19 ext.cross_compile = true
20
21 # forces the Windows platform instead of the default one
22 # configure options only for cross compile
23 ext.cross_platform = %w( i386-mswin32 x86-mingw32 )
4ad001ce » macournoyer
2009-09-05 Make cross compiling to win32 work under OS X, w00t!
24 end
25
85e9ef55 » macournoyer
2010-03-01 Support multiple Ruby version (fat binaries under windows)
26 CLEAN.include %w(**/*.{o,bundle,jar,so,obj,pdb,lib,def,exp,log} ext/*/Makefile ext/*/conftest.dSYM lib/1.{8,9}})
9d4f0256 » macournoyer
2009-09-05 Replace custom extension tasks w/ rake-compiler
27
28 desc "Compile the Ragel state machines"
29 task :ragel do
30 Dir.chdir 'ext/thin_parser' do
31 target = "parser.c"
32 File.unlink target if File.exist? target
2e9db13e » macournoyer
2009-12-07 Port fix for ; in path from Unicorn (http://git.bogomips.org/cgit/uni…
33 sh "ragel parser.rl -G2 -o #{target}"
9d4f0256 » macournoyer
2009-09-05 Replace custom extension tasks w/ rake-compiler
34 raise "Failed to compile Ragel state machine" unless File.exist? target
35 end
36 end
4ad001ce » macournoyer
2009-09-05 Make cross compiling to win32 work under OS X, w00t!
37
85e9ef55 » macournoyer
2010-03-01 Support multiple Ruby version (fat binaries under windows)
38 desc "Build gem packages"
39 task :gems do
40 sh "rake clean gem && rake cross native gem RUBY_CC_VERSION=1.8.6:1.9.1"
41 end
42
4ad001ce » macournoyer
2009-09-05 Make cross compiling to win32 work under OS X, w00t!
43 desc "Release version #{Thin::VERSION::STRING} gems to rubyforge"
85e9ef55 » macournoyer
2010-03-01 Support multiple Ruby version (fat binaries under windows)
44 task :release => [:tag, "gem:push"]
Something went wrong with that request. Please try again.