Fix: issue #34, compiling on Arch linux
This commit is contained in:
parent
0a075704ee
commit
304de8804d
|
@ -6,8 +6,13 @@ module CapybaraWebkitBuilder
|
|||
def makefile
|
||||
qmake_binaries = ['qmake', 'qmake-qt4']
|
||||
qmake = qmake_binaries.detect { |qmake| system("which #{qmake}") }
|
||||
case RUBY_PLATFORM
|
||||
when /linux/
|
||||
system("#{qmake} -spec linux-g++")
|
||||
else
|
||||
system("#{qmake} -spec macx-g++")
|
||||
end
|
||||
end
|
||||
|
||||
def qmake
|
||||
system("make qmake")
|
||||
|
|
Loading…
Reference in New Issue