Skip to content

Commit 37b5f5c

Browse files
committed
ship with msgpack headers
1 parent 581b200 commit 37b5f5c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,6 @@ build/
3838
/mruby/
3939
/build_config.rb.lock
4040
compile_commands.json
41-
/.cache/
41+
/.cache/
42+
include/msgpack/
43+
include/msgpack.hpp

mrbgem.rake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ MRuby::Gem::Specification.new('mruby-simplemsgpack') do |spec|
4343
sh "cmake --build . --target install"
4444
end
4545
end
46+
dst = File.join(File.expand_path(File.dirname(__FILE__)), 'include')
4647

47-
[spec.cc, spec.cxx, build.cc, build.cxx].each { |c| c.include_paths << include_dir }
48+
FileUtils.mkdir_p(dst)
49+
FileUtils.cp_r("#{include_dir}/.", dst)
50+
51+
[spec.cc, spec.cxx].each { |c| c.include_paths << include_dir }
4852
end

0 commit comments

Comments
 (0)