summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-05-21 10:05:58 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2014-05-21 10:05:58 -0700
commit6af88ec7e2cc28dbe837ddbd41b0a8ecc63694b8 (patch)
tree564ad196f227ce5fd6aa412776d3ff733187d077
parent3494f2bfc75031f6e131517df21936661eab39c2 (diff)
downloadlibyajl2-gem-6af88ec7e2cc28dbe837ddbd41b0a8ecc63694b8.tar.gz
add deploying header files to 'rake compile'
-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
#