-
Notifications
You must be signed in to change notification settings - Fork 10
/
Rakefile
38 lines (31 loc) · 808 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
37
38
#!/usr/bin/env rake
require 'rubygems'
require 'bundler'
require 'bundler/gem_tasks'
require 'rake/testtask'
require 'rake'
require 'rake/extensiontask'
require 'rspec/core'
require 'rspec/core/rake_task'
Bundler.setup
Rake::ExtensionTask.new('gdal-ruby/gdal') do |ext|
ext.name = 'gdal'
ext.lib_dir = "lib/gdal-ruby"
end
Rake::ExtensionTask.new('gdal-ruby/ogr') do |ext|
ext.name = 'ogr'
ext.lib_dir = "lib/gdal-ruby"
end
Rake::ExtensionTask.new('gdal-ruby/osr') do |ext|
ext.name = 'osr'
ext.lib_dir = "lib/gdal-ruby"
end
Rake::ExtensionTask.new('gdal-ruby/gdalconst') do |ext|
ext.name = 'gdalconst'
ext.lib_dir = "lib/gdal-ruby"
end
RSpec::Core::RakeTask.new(:spec) do |spec|
Rake::Task['compile'].invoke
spec.pattern = FileList['spec/**/*_spec.rb']
end
task :default => :spec