File: Rakefile

package info (click to toggle)
ruby-debug-inspector 1.1.0%2Bgh-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 128 kB
  • sloc: ansic: 90; ruby: 68; sh: 4; makefile: 4
file content (27 lines) | stat: -rwxr-xr-x 516 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
require "bundler/gem_tasks"
require "rake/testtask"

def can_compile_extensions?
  RUBY_ENGINE == "ruby"
end 

Rake::TestTask.new(:test) do |t|
  t.libs << "test"
  t.libs << "lib"
  t.test_files = FileList["test/**/*_test.rb"]
  t.warning = true
  t.verbose = true
end

require "rake/extensiontask"

if can_compile_extensions?
  task :build => :compile
  task :default => [:clobber, :compile, :test]
else
  task :default => [:test]
end

Rake::ExtensionTask.new("debug_inspector") do |ext|
  ext.lib_dir = "lib"
end