Skip to content

Commit

Permalink
Use msbuild on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
schneems committed Aug 1, 2016
1 parent c9c1b32 commit cf533ad
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/tasks/libsass.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,16 @@
end

file "lib/libsass.so" => "Makefile" do
puts `pwd`
make_program = ENV['MAKE']
make_program ||= case RUBY_PLATFORM
when /mswin|mingw/
'nmake'
'msbuild /m:4 /p:Configuration=Release win/libsass.sln'
when /(bsd|solaris)/
'gmake'
'gmake lib/libsass.so'
else
'make'
'make lib/libsass.so'
end
sh "#{make_program} lib/libsass.so"
sh "#{make_program}"
end
end

0 comments on commit cf533ad

Please sign in to comment.