| | 50 | |
|---|
| | 51 | |
|---|
| | 52 | # To build a binary gem for unix platforms, first build rubyeventmachine.so |
|---|
| | 53 | # using gcc outside of the build tree (the normal way: ruby extconf.rb, |
|---|
| | 54 | # and then nmake). Then copy rubyeventmachine.so into the lib directory, |
|---|
| | 55 | # and run rake gembinary. |
|---|
| | 56 | specbinary = eval(File.read("eventmachine-binary.gemspec")) |
|---|
| | 57 | specbinary.version = $version |
|---|
| | 58 | desc "Build the RubyGem for EventMachine-Binary" |
|---|
| | 59 | task :gembinary => ["pkg/eventmachine-binary-#{$version}.gem"] |
|---|
| | 60 | Rake::GemPackageTask.new(specbinary) do |g| |
|---|
| | 61 | if $can_minitar |
|---|
| | 62 | g.need_tar = false |
|---|
| | 63 | g.need_zip = false |
|---|
| | 64 | end |
|---|
| | 65 | g.package_dir = "pkg" |
|---|
| | 66 | end |
|---|
| | 67 | |
|---|