Sha256: 4be21c735b53690ca99c8254e3a4153cb721ce0444e088e9692d651a4f5e110a

Contents?: true

Size: 661 Bytes

Versions: 16

Compression:

Stored size: 661 Bytes

Contents

# We can't use Ruby's standard build procedures
# on Windows because the Ruby executable is
# built with VC++ while here we want to build
# with MingW.  So just roll our own...

require 'fileutils'
require 'rbconfig'

EXTENSION_NAME = "libxslt_ruby.#{Config::CONFIG["DLEXT"]}"

# This is called when the Windows GEM is installed!
task :install do
  # Gems will pass these two environment variables:
  # RUBYARCHDIR=#{dest_path}
  # RUBYLIBDIR=#{dest_path}
  
  dest_path = ENV['RUBYLIBDIR']
  
  # Copy the extension
  cp(EXTENSION_NAME, dest_path)
  
  # Copy dllss
  Dir.glob('*.dll').each do |dll|
    cp(dll, dest_path)
  end
end

task :default => :install

Version data entries

16 entries across 15 versions & 3 rubygems

Version Path
libxslt-ruby19-0.9.8 ext/mingw/Rakefile
libxslt-ruby19-0.9.8 ext/mingw/Rakefile3
libxslt-ruby-0.9.8 ext/mingw/Rakefile
libxslt-ruby19-0.0.0 ext/mingw/Rakefile
libxslt-ruby-r19mingw1-0.9.7 ext/mingw/Rakefile
libxslt-ruby-0.9.7 ext/mingw/Rakefile
libxslt-ruby-0.9.6 ext/mingw/Rakefile
libxslt-ruby-0.9.6-x86-mswin32-60 ext/mingw/Rakefile
libxslt-ruby-0.9.5 ext/mingw/Rakefile
libxslt-ruby-0.9.4-x86-mswin32-60 ext/mingw/Rakefile
libxslt-ruby-0.9.0 ext/mingw/Rakefile
libxslt-ruby-0.9.0-x86-mswin32-60 ext/mingw/Rakefile
libxslt-ruby-0.9.1-x86-mswin32-60 ext/mingw/Rakefile
libxslt-ruby-0.9.1 ext/mingw/Rakefile
libxslt-ruby-0.9.2 ext/mingw/Rakefile
libxslt-ruby-0.9.2-x86-mswin32-60 ext/mingw/Rakefile