Sha256: 2fc6d604b3f4f0acd4af1e041476ea67759ada5e51dfc3cd03e3b7e1713e13ab

Contents?: true

Size: 621 Bytes

Versions: 7

Compression:

Stored size: 621 Bytes

Contents

require "rake/clean"
require "rake/extensiontask"
require "rubygems/package_task"

CLEAN << "pkg" << "tmp" << "lib/unicode"

gem_spec = eval(File.read(File.expand_path("../unicode.gemspec", __FILE__)))

Gem::PackageTask.new(gem_spec) {|pkg|}

Rake::ExtensionTask.new('unicode_native', gem_spec) do |ext|
  ext.cross_compile = true
  ext.cross_platform = ['x86-mingw32', 'x86-mswin32-60']
  ext.ext_dir = "ext/unicode"
  ext.lib_dir = "lib/unicode"
end

desc "Build native gems for Windows"
task :windows_gem => :clean do
  ENV["RUBY_CC_VERSION"] = "1.8.7:1.9.3"
  sh "rake cross compile"
  sh "rake cross native gem"
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
unicode-0.4.3.1 Rakefile
unicode-0.4.3-x86-mswin32-60 Rakefile
unicode-0.4.3-x86-mingw32 Rakefile
unicode-0.4.2-x86-mswin32-60 Rakefile
unicode-0.4.2-x86-mingw32 Rakefile
unicode-0.4.1-x86-mswin32-60 Rakefile
unicode-0.4.1-x86-mingw32 Rakefile