jasmine-headless-webkit/ext/jasmine-webkit-specrunner/extconf.rb

14 lines
632 B
Ruby
Raw Permalink Normal View History

2011-08-01 17:09:08 +00:00
require 'fileutils'
2011-07-18 14:52:57 +00:00
$: << File.expand_path("../../../lib", __FILE__)
require 'qt/qmake'
2011-08-03 16:26:39 +00:00
system %{make clean}
2011-08-02 19:47:14 +00:00
Qt::Qmake.make!('jasmine-headless-webkit', 'specrunner.pro')
# The build above can fail silently. So we check for the existence of the binary.
raise "\n***********************\nGem jasmine-headless-webkit-firstbanco failed to build. Have you got qtmake installed? On linux you need: sudo apt-get install libqtwebkit-dev qt4-dev-tools" unless File.exist?(File.expand_path('../jasmine-webkit-specrunner', __FILE__))
2011-09-01 12:36:11 +00:00
FileUtils.cp File.expand_path('../Makefile.dummy', __FILE__), File.expand_path('../Makefile', __FILE__)