From 6af88ec7e2cc28dbe837ddbd41b0a8ecc63694b8 Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Wed, 21 May 2014 10:05:58 -0700 Subject: add deploying header files to 'rake compile' --- Rakefile | 8 ++++++++ 1 file changed, 8 insertions(+) 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 # -- cgit v1.2.1