Sha256: d9e1055906c5baf9ab298c9b5de54d8031db2be7db16d759497ecef21b16bdfb
Contents?: true
Size: 1.1 KB
Versions: 9
Compression:
Stored size: 1.1 KB
Contents
Rake::Task['build'].prerequisites.unshift('compile') namespace :build do desc "Generate Windows binary gems" task :win do unless File.directory?(File.expand_path('~/.rake-compiler')) STDERR.puts <<-EOM You must install Windows rubies to ~/.rake-compiler with: rake-compiler cross-ruby VERSION=1.8.6-p398 # (Later 1.9.1 patch levels don't compile on mingw) rake-compiler cross-ruby VERSION=1.9.1-p243 EOM exit(1) end # rvm and mingw ruby versions have to match to avoid errors sh "rvm ruby-1.8.6-p398@redcloth rake cross compile RUBY_CC_VERSION=1.8.6" sh "rvm ruby-1.9.1-p243@redcloth rake cross compile RUBY_CC_VERSION=1.9.1" # This will copy the .so files to the proper place sh "rake cross native gem RUBY_CC_VERSION=1.8.6:1.9.1" end desc 'Generate JRuby binary gem' task :jruby do sh "rvm jruby@redcloth rake java gem" end desc "Build ruby, windows, and jruby gems into the pkg directory" task :all => [ "rvm:bundle", :clobber, :spec, :jruby, :win, :build ] end
Version data entries
9 entries across 9 versions & 1 rubygems