Sha256: fbb0bda6f5b392f2b7f9f0a9a2058cc78e3c0365b5cb97554e285d1b6f44bc77

Contents?: true

Size: 662 Bytes

Versions: 1

Compression:

Stored size: 662 Bytes

Contents

# 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 CONFIG+=debug -spec macx-g++}

  File.open("Makefile", "w") do |mf|
    mf.puts <<-ENDM
all:
	(cd embed && #{qmake}; make)
	(cd standalone && #{qmake}; make)
install:
	# do nothing
    ENDM
  end
else
  if Gem.win_platform?
    qmake = %{qmake CONFIG+=debug -spec win32-g++}
  else
    qmake = %{qmake CONFIG+=debug}
  end

  File.open("Makefile", "w") do |mf|
    mf.puts <<-ENDM
all:
	#{qmake}
	make
    ENDM
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sunscraper-1.2.0.beta1 ext/extconf.rb