summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2013-11-18 18:11:41 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2013-11-18 18:11:41 -0800
commitc9673929b4ea808d690d649fe3145c4dd0bb90ee (patch)
tree05d079e6c95f4c4b3533a55a161a51957cd8eba0 /Rakefile
parentdd14f5047a79a5a4d1e284938c15c55a93d28c7c (diff)
downloadffi-yajl-c9673929b4ea808d690d649fe3145c4dd0bb90ee.tar.gz
working on native C ext
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index f79f585..9e7b635 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,5 +1,6 @@
require 'rspec/core/rake_task'
require 'rubygems/package_task'
+require 'rake/extensiontask'
Dir[File.expand_path("../*gemspec", __FILE__)].reverse.each do |gemspec_path|
gemspec = eval(IO.read(gemspec_path))
@@ -34,4 +35,12 @@ task :clean do
sh %Q{ rm -f pkg/*.gem }
end
+spec = Gem::Specification.load('ffi-yajl.gemspec')
+Rake::ExtensionTask.new do |ext|
+ ext.name = 'encoder'
+ ext.lib_dir = 'lib/ffi_yajl/ext'
+ ext.ext_dir = 'ext/ffi_yajl/ext/encoder'
+ ext.gem_spec = spec
+end
+
task :default => :spec