Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (27 sloc) 0.625 kb
require "fileutils"
module CapybaraWebkitBuilder
extend self
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")
end
def build
system("make") or return false
FileUtils.mkdir("bin") unless File.directory?("bin")
FileUtils.cp("src/webkit_server", "bin", :preserve => true)
end
def build_all
makefile &&
qmake &&
build
end
end
Jump to Line
Something went wrong with that request. Please try again.