Minimal compilation fix for Windows.

This commit is contained in:
Moreno 2012-04-19 14:23:19 +02:00 committed by Joe Ferris
parent 4e47ea9f99
commit 0c57019dca
1 changed files with 11 additions and 2 deletions

View File

@ -30,11 +30,20 @@ module CapybaraWebkitBuilder
end
def makefile
system("LANG='en_US.UTF-8' #{qmake_bin} -spec #{spec}")
system("#{make_env_variables} #{qmake_bin} -spec #{spec}")
end
def qmake
system("LANG='en_US.UTF-8' #{make_bin} qmake")
system("#{make_env_variables} #{make_bin} qmake")
end
def make_env_variables
case RbConfig::CONFIG['host_os']
when /mingw32/
''
else
"LANG='en_US.UTF-8'"
end
end
def path_to_binary