1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
require "bundler/gem_tasks"
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec)
task :build => :compile
case RUBY_PLATFORM
when /java/
require 'rake/javaextensiontask'
Rake::JavaExtensionTask.new('binding_ninja') do |ext|
ext.lib_dir = "lib/binding_ninja"
ext.source_version = '1.8'
ext.target_version = '1.8'
end
else
require 'rake/extensiontask'
Rake::ExtensionTask.new("binding_ninja") do |ext|
ext.lib_dir = "lib/binding_ninja"
end
end
task :default => [:clobber, :compile, :spec]
|