diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2013-11-23 21:07:26 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2013-11-23 21:07:26 -0800 |
commit | 6229ffa8872529479699aa1fc57b459ec06915c2 (patch) | |
tree | b87ce2f007ee6dd1d99b1ae33d0d9fc2ebdf0244 /Rakefile | |
parent | b895221d3c0e3a706ae2f814c514c2db289967e5 (diff) | |
download | ffi-yajl-6229ffa8872529479699aa1fc57b459ec06915c2.tar.gz |
removing rake-compiler
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 20 |
1 files changed, 6 insertions, 14 deletions
@@ -37,20 +37,12 @@ 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 - -Rake::ExtensionTask.new do |ext| - ext.name = 'libyajl2' - ext.ext_dir = 'ext/libyajl2' - ext.gem_spec = spec +desc "compile extensions" +task :compile do + sh %Q{ ruby ext/libyajl2/extconf.rb } + sh %Q{ ruby ext/ffi_yajl/ext/encoder/extconf.rb } + sh %Q{ cd ext/ffi_yajl/ext/encoder && make } + sh %Q{ cd ext/ffi_yajl/ext/encoder && make install } end -task :compile_encodr => :compile_libyajl2 - task :default => :spec |