lib/leaves/qt.rb in leaves-0.1.0 vs lib/leaves/qt.rb in leaves-0.1.1
- old
+ new
@@ -32,10 +32,15 @@
self
end
private
def define_build
- if (/darwin/.match(RUBY_PLATFORM) && (@spec.nil? || @spec == 'macx-xcode'))
+ if (/mswin/.match(RUBY_PLATFORM))
+ require 'leaves/vstudio'
+ Rake::Leaves::NmakeTask.new do |nmake|
+ nmake.makefile = @makefile
+ end
+ elsif (/darwin/.match(RUBY_PLATFORM) && (@spec.nil? || @spec == 'macx-xcode'))
require 'leaves/xcode'
Rake::Leaves::XcodeTask.new
else
require 'leaves/gnu'
Rake::Leaves::MakeTask.new do |make|