forked from blackwinter/rb-gsl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
36 lines (28 loc) · 793 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
require File.expand_path(%q{../lib/gsl/version}, __FILE__)
require 'rubygems'
require 'rubygems/package_task'
require 'bundler'
Bundler::GemHelper.install_tasks
begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
require 'rake'
require "rake/extensiontask"
require 'rake/testtask'
Rake::TestTask.new do |t|
t.libs << "test"
t.libs << "test/gsl"
t.test_files = FileList['test/*.rb', 'test/gsl/*.rb']
end
Rake::ExtensionTask.new do |ext|
ext.name = 'gsl_native'
ext.ext_dir = 'ext/gsl'
ext.lib_dir = 'lib/'
ext.source_pattern = "**/*.{c,cpp,h}"
end
gemspec = eval(IO.read("gsl-nmatrix.gemspec"))
Gem::PackageTask.new(gemspec).define