Skip to content

Commit

Permalink
Fiddling with the windows cross-compile gem logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Jun 10, 2013
1 parent b1483de commit b6100af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -240,7 +240,7 @@ task "gem:windows" => "gem" do
raise "rbconfig #{rbconfig_20} needs --export-all in its DLDFLAGS value" if File.read(rbconfig_20).split("\n").grep(/CONFIG\["DLDFLAGS"\].*--export-all/).empty?

pkg_config_path = %w[libxslt libxml2].collect { |pkg| File.join($recipes[pkg].path, "lib/pkgconfig") }.join(":")
sh("env PKG_CONFIG_PATH=#{pkg_config_path} RUBY_CC_VERSION=#{ruby_cc_version} rake cross native gem") || raise("build failed!")
sh("env PKG_CONFIG_PATH=#{pkg_config_path} RUBY_CC_VERSION=#{ruby_cc_version} rake cross2 native gem") || raise("build failed!")
end

# vim: syntax=Ruby
6 changes: 3 additions & 3 deletions tasks/cross_compile.rb
Expand Up @@ -121,12 +121,12 @@ def install
end

task :file_list do
HOE.spec.files += Dir["lib/nokogiri/nokogiri.rb"]
HOE.spec.files += Dir["lib/nokogiri/{1.9,2.0}/nokogiri.so"]
add_file_to_gem "lib/nokogiri/nokogiri.rb"
end

end

require 'rake/clean'
CLOBBER.include("#{CROSS_DIR}/*.installed", "#{CROSS_DIR}/#{HOST}", "tmp/#{HOST}")

task :cross => ["cross:libxslt", "lib/nokogiri/nokogiri.rb", "cross:file_list"]
task :cross2 => ["cross:libxslt", "lib/nokogiri/nokogiri.rb", "cross", "cross:file_list"]

0 comments on commit b6100af

Please sign in to comment.