-
Notifications
You must be signed in to change notification settings - Fork 23
/
Rakefile
36 lines (29 loc) · 962 Bytes
/
Rakefile
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
28
29
30
31
32
33
34
35
36
task :default => :test
# ==========================================================
# Packaging
# ==========================================================
GEMSPEC = eval(File.read('gctools.gemspec'))
require 'rubygems/package_task'
Gem::PackageTask.new(GEMSPEC) do |pkg|
end
# ==========================================================
# Ruby Extension
# ==========================================================
require 'rake/extensiontask'
Rake::ExtensionTask.new('gcprof', GEMSPEC) do |ext|
ext.ext_dir = 'ext/gcprof'
ext.lib_dir = 'lib/gctools'
end
Rake::ExtensionTask.new('oobgc', GEMSPEC) do |ext|
ext.ext_dir = 'ext/oobgc'
ext.lib_dir = 'lib/gctools'
end
task :build => :compile
# ==========================================================
# Testing
# ==========================================================
require 'rake/testtask'
Rake::TestTask.new 'test' do |t|
t.test_files = FileList['test/test_*.rb']
end
task :test => :build