Sha256: 1554179eb312a5fdc7558194eb0bf26f156eb74d3d720a0c96bfd222d2e1a945

Contents?: true

Size: 742 Bytes

Versions: 228

Compression:

Stored size: 742 Bytes

Contents

$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
require 'fileutils'
require 'ffi'
require 'ffi/platform'
require 'ffi/tools/types_generator'
types_conf = File.expand_path(File.join(FFI::Platform::CONF_DIR, 'types.conf'))

logfile = File.join(File.dirname(__FILE__), 'log')

file types_conf do |task|
  options = {}
  FileUtils.mkdir_p(File.dirname(task.name), { :mode => 0755 })
  File.open(task.name, File::CREAT|File::TRUNC|File::RDWR, 0644) do |f|
    f.puts FFI::TypesGenerator.generate(options)
  end
  File.open(logfile, 'w') do |log|
    log.puts(types_conf)
  end
end

task :default => types_conf do
end

task :clean do
  File.readlines(logfile).each do |file|
    file.strip!
    rm_f file
  end
  rm_f logfile
end

Version data entries

228 entries across 183 versions & 23 rubygems

Version Path
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/gen/Rakefile
tdiary-5.0.8 vendor/bundle/gems/tdiary-5.0.7/vendor/bundle/gems/ffi-1.9.18/gen/Rakefile
vagrant-unbundled-2.0.2.0 vendor/bundle/ruby/2.5.0/gems/ffi-1.9.18/gen/Rakefile
vagrant-unbundled-2.0.2.0 vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/gen/Rakefile
ffi-1.9.21-x86-mingw32 gen/Rakefile
ffi-1.9.21-x64-mingw32 gen/Rakefile
ffi-1.9.21 gen/Rakefile
tdiary-5.0.7 vendor/bundle/gems/ffi-1.9.18/gen/Rakefile
comiditaULL-0.1.1 vendor/bundle/ruby/2.3.0/gems/ffi-1.9.18/gen/Rakefile
comidita_ull-0.1.1 vendor/bundle/ruby/2.3.0/gems/ffi-1.9.18/gen/Rakefile
comidita_ull-0.1.0 vendor/bundle/ruby/2.3.0/gems/ffi-1.9.18/gen/Rakefile
vagrant-unbundled-2.0.1.0 vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/gen/Rakefile
cloudsmith-api-0.21.4 vendor/bundle/ruby/2.3.0/gems/ffi-1.9.18/gen/Rakefile
tdiary-5.0.6 vendor/bundle/gems/ffi-1.9.18/gen/Rakefile
vagrant-unbundled-2.0.0.1 vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/gen/Rakefile
vagrant-unbundled-1.9.8.1 vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/gen/Rakefile
vagrant-unbundled-1.9.7.1 vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/gen/Rakefile
tdiary-5.0.5 vendor/bundle/gems/ffi-1.9.18/gen/Rakefile
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/ffi-1.9.18/gen/Rakefile
vagrant-unbundled-1.9.5.1 vendor/bundle/ruby/2.4.0/gems/ffi-1.9.18/gen/Rakefile