Skip to content
Newer
Older
100644 21 lines (14 sloc) 446 Bytes
07976a2 @cstrahan Expose INCLUDEPATH and LIBS qmake variables
cstrahan authored Dec 15, 2014
1 require "mkmf"
2
3 $CPPFLAGS = ""
4
5 dir_config("gl")
6 dir_config("zlib")
7
8 include_path = $CPPFLAGS.gsub("-I", "").strip
9 libs = $LIBPATH.map { |path| "-L#{path}"}.join(" ").strip
10
11 unless include_path.empty?
12 ENV["CAPYBARA_WEBKIT_INCLUDE_PATH"] = include_path
13 end
14
15 unless libs.empty?
16 ENV["CAPYBARA_WEBKIT_LIBS"] = libs
17 end
18
827c3fc @joshuaclayton Move code that compiles Webkit into separate file to support Ruby 1.9.2
joshuaclayton authored Apr 15, 2011
19 require File.join(File.expand_path(File.dirname(__FILE__)), "lib", "capybara_webkit_builder")
20 CapybaraWebkitBuilder.build_all
Something went wrong with that request. Please try again.