use configurable extension for installing c ext
This commit is contained in:
parent
13c407cd85
commit
c706e79813
4
Rakefile
4
Rakefile
|
@ -8,6 +8,8 @@ begin
|
||||||
require 'rake/contrib/rubyforgepublisher'
|
require 'rake/contrib/rubyforgepublisher'
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
end
|
end
|
||||||
|
require 'rbconfig'
|
||||||
|
include Config
|
||||||
|
|
||||||
# NOTE: some of the tests assume Mongo is running
|
# NOTE: some of the tests assume Mongo is running
|
||||||
Rake::TestTask.new do |t|
|
Rake::TestTask.new do |t|
|
||||||
|
@ -31,7 +33,7 @@ task :compile do
|
||||||
cd 'ext/cbson'
|
cd 'ext/cbson'
|
||||||
ruby 'extconf.rb'
|
ruby 'extconf.rb'
|
||||||
sh 'make'
|
sh 'make'
|
||||||
cp 'cbson.bundle', '../../lib/mongo/ext/cbson.bundle'
|
cp "cbson.#{CONFIG['DLEXT']}", '../../lib/mongo/ext'
|
||||||
end
|
end
|
||||||
|
|
||||||
namespace :gem do
|
namespace :gem do
|
||||||
|
|
Loading…
Reference in New Issue