Sha256: cfd577bf67cbd9aba462b6baa63316ef4989f3d01a62cee0da838d7b1b7b5dd0
Contents?: true
Size: 1007 Bytes
Versions: 3
Compression:
Stored size: 1007 Bytes
Contents
require 'bundler' Bundler::GemHelper.install_tasks require "rake/testtask" require 'rake_compiler_dock' require "rake/clean" Rake::TestTask.new(:test) do |t| t.libs << "test" t.libs << "lib" t.test_files = FileList["test/**/test_*.rb"] end require "rake/extensiontask" spec = eval File.read("ioext_c.gemspec") Rake::ExtensionTask.new("ioext", spec) do |ext| ext.lib_dir = "lib/ioext" ext.cross_compile = true ext.lib_dir = File.join(*['lib', 'ioext', ENV['FAT_DIR']].compact) # cross_platform names are of MRI's platform name ext.cross_platform = ['x86-mingw32', 'x64-mingw32'] end desc 'Build gems for Windows per rake-compiler-dock' task 'gem:native' do # See RUBY_CC_VERSION in https://github.com/rake-compiler/rake-compiler-dock/blob/master/Dockerfile.mri RakeCompilerDock.sh <<-EOS gem install bundler --no-doc && bundle rake cross native gem RUBY_CC_VERSION=2.4.0:2.5.0:2.6.0 EOS end CLEAN.include('lib/ioext/ioext.*') task :default => [:clobber, :compile, :test]
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ioext_c-0.1.0-x86-mingw32 | Rakefile |
ioext_c-0.1.0-x64-mingw32 | Rakefile |
ioext_c-0.1.0 | Rakefile |