-
Notifications
You must be signed in to change notification settings - Fork 3
/
Rakefile
27 lines (22 loc) · 637 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
require 'bundler/setup'
require 'rake'
require 'rake/clean'
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'ffi-compiler/compile_task'
task :default => [:clean, :compile, :spec]
desc "run specs"
task :spec do
RSpec::Core::RakeTask.new
end
desc "compiler tasks"
namespace "ffi-compiler" do
FFI::Compiler::CompileTask.new('ext/geokdtree/geokdtree') do |c|
c.have_library?('pthread')
c.cflags << "-DUSE_LIST_NODE_ALLOCATOR"
end
end
task :compile => ["ffi-compiler:default"]
CLEAN.include('ext/**/*{.o,.log,.so,.bundle}')
CLEAN.include('lib/**/*{.o,.log,.so,.bundle}')
CLEAN.include('ext/**/Makefile')