summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2013-11-23 00:17:01 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2013-11-23 00:17:01 -0800
commit245072bee2409bb1bdad14938c1bb0f64d900ed7 (patch)
tree2e57c905e3c0e9510ee0f18ac3ca61096abbdeb5 /Rakefile
parent5b4d4c427284d144d134009647d92d3976433a05 (diff)
downloadffi-yajl-245072bee2409bb1bdad14938c1bb0f64d900ed7.tar.gz
rake compile almost working with vendored libyajl
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 9e7b635..e7d5265 100644
--- a/Rakefile
+++ b/Rakefile
@@ -36,6 +36,8 @@ task :clean do
end
spec = Gem::Specification.load('ffi-yajl.gemspec')
+
+
Rake::ExtensionTask.new do |ext|
ext.name = 'encoder'
ext.lib_dir = 'lib/ffi_yajl/ext'
@@ -43,4 +45,12 @@ Rake::ExtensionTask.new do |ext|
ext.gem_spec = spec
end
+Rake::ExtensionTask.new do |ext|
+ ext.name = 'libyajl2'
+ ext.ext_dir = 'ext/libyajl2'
+ ext.gem_spec = spec
+end
+
+task :compile_encodr => :compile_libyajl2
+
task :default => :spec