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

31 lines
548 B
Ruby

require "fileutils"
module CapybaraWebkitBuilder
extend self
def makefile
system("qmake -spec macx-g++")
end
def qmake
system("make qmake")
end
def build
system("make")
FileUtils.mkdir("bin") unless File.directory?("bin")
if File.exist?("src/webkit_server.app")
FileUtils.cp("src/webkit_server.app/Contents/MacOS/webkit_server", "bin", :preserve => true)
else
FileUtils.cp("src/webkit_server", "bin", :preserve => true)
end
end
def build_all
makefile
qmake
build
end
end