fix bugs on building extensions

This commit is contained in:
Ishotihadus
2019-12-10 19:22:00 +09:00
parent 857a0c3fae
commit 2271b33cdd
5 changed files with 30 additions and 7 deletions
+5 -1
View File
@@ -9,10 +9,14 @@ end
task build: :compile
%w[decoders/native decoders/crunch].each do |dir|
ext_dirs = %w[decoders/native decoders/crunch]
ext_dirs.each do |dir|
Rake::ExtensionTask.new(dir) do |ext|
ext.lib_dir = 'lib/mikunyan'
end
end
task compile: ext_dirs.map{|e| "compile:#{e}".to_sym}
task default: %i[clobber compile spec]