File: Rakefile

package info (click to toggle)
ruby-binding-ninja 0.2.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 132 kB
  • sloc: java: 154; ansic: 118; ruby: 72; makefile: 4; sh: 4
file content (23 lines) | stat: -rw-r--r-- 529 bytes parent folder | download
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]