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:
parent
4e47ea9f99
commit
0c57019dca
1 changed files with 11 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue