Sha256: c1993fc9557eb55f63be8099f5bd257bbcbd3f03b234f3b986ecfe1bf829fd61

Contents?: true

Size: 644 Bytes

Versions: 7

Compression:

Stored size: 644 Bytes

Contents

# ext/games_dice/extconf.rb
can_compile_extensions = false
want_extensions = true

begin
  require 'mkmf'
  can_compile_extensions = true
rescue Exception
  # This will appear only in verbose mode.
  $stderr.puts "Could not require 'mkmf'. Not fatal: The extensions are optional."
end


if can_compile_extensions && want_extensions
  create_makefile( 'games_dice/games_dice' )

else
  # Create a dummy Makefile, to satisfy Gem::Installer#install
  mfile = open("Makefile", "wb")
  mfile.puts '.PHONY: install'
  mfile.puts 'install:'
  mfile.puts "\t" + '@echo "Extensions not installed, falling back to pure Ruby version."'
  mfile.close

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
games_dice-0.3.12 ext/games_dice/extconf.rb
games_dice-0.3.11 ext/games_dice/extconf.rb
games_dice-0.3.10 ext/games_dice/extconf.rb
games_dice-0.3.9 ext/games_dice/extconf.rb
games_dice-0.3.8 ext/games_dice/extconf.rb
games_dice-0.3.7 ext/games_dice/extconf.rb
games_dice-0.3.6 ext/games_dice/extconf.rb