1
0
Fork 0
mirror of https://github.com/thoughtbot/capybara-webkit synced 2023-03-27 23:22:28 -04:00

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

View file

@ -30,11 +30,20 @@ module CapybaraWebkitBuilder
end end
def makefile def makefile
system("LANG='en_US.UTF-8' #{qmake_bin} -spec #{spec}") system("#{make_env_variables} #{qmake_bin} -spec #{spec}")
end end
def qmake 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 end
def path_to_binary def path_to_binary