summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 9c2fb8a..0e7765d 100644
--- a/Rakefile
+++ b/Rakefile
@@ -102,6 +102,14 @@ task :prep do
generate_yajl_version
end
+task :compile do
+ include_path = File.expand_path("../lib/libyajl2/vendored-libyajl2/include/yajl", __FILE__)
+ vendor_src_path = File.expand_path("../ext/libyajl2/vendor/yajl/src", __FILE__)
+
+ FileUtils.mkdir_p(include_path)
+ FileUtils.cp Dir["#{vendor_src_path}/api/*.h"], include_path
+end
+
#
# FIXME: need a rake task to update the git submodule and need to do that before shipping
#