ext/extconf.rb in sunscraper-1.1.0.beta3 vs ext/extconf.rb in sunscraper-1.2.0.beta1
- old
+ new
@@ -1,11 +1,13 @@
# This Makefile will get replaced by qmake.
+require 'rbconfig'
+
if RUBY_PLATFORM =~ /darwin/i || RbConfig::CONFIG['target_os'] == 'darwin'
# Cannot you OS X have a build system like all sane people?
# Win32 wins again.
- qmake = %{qmake -spec macx-g++}
+ qmake = %{qmake CONFIG+=debug -spec macx-g++}
File.open("Makefile", "w") do |mf|
mf.puts <<-ENDM
all:
(cd embed && #{qmake}; make)
@@ -14,12 +16,12 @@
# do nothing
ENDM
end
else
if Gem.win_platform?
- qmake = %{qmake -spec win32-g++}
+ qmake = %{qmake CONFIG+=debug -spec win32-g++}
else
- qmake = %{qmake}
+ qmake = %{qmake CONFIG+=debug}
end
File.open("Makefile", "w") do |mf|
mf.puts <<-ENDM
all:
\ No newline at end of file