diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2013-11-18 18:11:41 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2013-11-18 18:11:41 -0800 |
commit | c9673929b4ea808d690d649fe3145c4dd0bb90ee (patch) | |
tree | 05d079e6c95f4c4b3533a55a161a51957cd8eba0 /Rakefile | |
parent | dd14f5047a79a5a4d1e284938c15c55a93d28c7c (diff) | |
download | ffi-yajl-c9673929b4ea808d690d649fe3145c4dd0bb90ee.tar.gz |
working on native C ext
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |