Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (17 sloc) 0.527 kB
require 'rake'
require 'rake/tasklib'
require 'library/ffi/file_processor'
##
# Rake task that calculates C structs for FFI::Struct.
class Rubinius::FFI::FileProcessor::Task < Rake::TaskLib
def initialize(rb_names)
task :clean do rm_f rb_names end
rb_names.each do |rb_name|
ffi_name = "#{rb_name}.ffi"
file rb_name => ffi_name do |t|
puts "Generating #{rb_name}..." if Rake.application.options.trace
Rubinius::FFI::FileProcessor.new ffi_name, rb_name
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.