diff --git a/Gemfile b/Gemfile index 2c12bbe..79f6d80 100644 --- a/Gemfile +++ b/Gemfile @@ -17,6 +17,7 @@ group :development, :test do gem "ci_reporter" gem "ruby-prof" unless RUBY_PLATFORM =~ /java/ gem "perftools.rb" unless RUBY_PLATFORM =~ /java/ + gem "rake-compiler" # Java platforms :jruby do diff --git a/Rakefile b/Rakefile index cf75565..547474d 100644 --- a/Rakefile +++ b/Rakefile @@ -7,6 +7,8 @@ end require 'fileutils' require 'rake/testtask' require 'rake' +require 'rake/extensiontask' +require 'rake/javaextensiontask' begin require 'git' @@ -20,6 +22,14 @@ end ENV['TEST_MODE'] = 'TRUE' +Rake::ExtensionTask.new('cbson') do |ext| + ext.lib_dir = "lib/bson_ext" +end + +#Rake::JavaExtensionTask.new('jbson') do |ext| # not yet functional +# ext.ext_dir = 'ext/src/org/jbson' +#end + task :java do Rake::Task['build:java'].invoke Rake::Task['test:ruby'].invoke diff --git a/bench/exp_series.html b/bench/exp_series.html index 72675e1..a2b9fb0 100644 --- a/bench/exp_series.html +++ b/bench/exp_series.html @@ -25,7 +25,7 @@