Sha256: 9276d49138e76d7345ecfecd253d267dc5b8e2bc4667b8d3dfd44737217517ed
Contents?: true
Size: 901 Bytes
Versions: 7
Compression:
Stored size: 901 Bytes
Contents
require "bundler" Bundler::GemHelper.install_tasks require "rake" require "rake/extensiontask" require "rspec/core/rake_task" Dir[File.expand_path('../tasks/**/*.rake', __FILE__)].each {|f| load f } gem_spec = eval(File.read('pycall.gemspec')) Rake::ExtensionTask.new('pycall', gem_spec) do |ext| ext.lib_dir = File.join(*['lib', ENV['FAT_DIR']].compact) ext.cross_compile = true ext.cross_platform = %w[x86-mingw32 x64-mingw32] ext.cross_compiling do |s| s.files.concat %w[lib/2.2/pycall.so lib/2.3/pycall.so lib/2.4/pycall.so] end end Rake::ExtensionTask.new('pycall/spec_helper') desc "Compile binaries for mingw platform using rake-compiler-dock" task 'build:mingw' do require 'rake_compiler_dock' RakeCompilerDock.sh "bundle && rake cross native gem RUBY_CC_VERSION=2.1.6:2.2.2:2.3.0:2.4.0" end RSpec::Core::RakeTask.new(:spec) task :default => :spec task spec: :compile
Version data entries
7 entries across 7 versions & 1 rubygems
Version | Path |
---|---|
pycall-1.3.1 | Rakefile |
pycall-1.3.0 | Rakefile |
pycall-1.3.0.dev | Rakefile |
pycall-1.2.1 | Rakefile |
pycall-1.2.0 | Rakefile |
pycall-1.2.0.beta1 | Rakefile |
pycall-1.1.0.rc1 | Rakefile |