Sha256: 493b010e76309150a2a6c3c2f98def74f05020bda411e1eab92b6cf1cdbe74e7

Contents?: true

Size: 523 Bytes

Versions: 3

Compression:

Stored size: 523 Bytes

Contents

require 'mkmf'
require 'rbconfig'

def generate_makefile
  create_makefile("wdm_ext")
end

def generate_dummy_makefile
  File.open("Makefile", "w") do |f|
    f.puts dummy_makefile('wdm_ext').join
  end
end

def windows?
  RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/
end

if windows? and
   have_library("kernel32") and
   have_header("windows.h") and
   have_header("ruby.h")    and
   have_const('HAVE_RUBY_ENCODING_H')
then
   generate_makefile()
else
  generate_dummy_makefile() 
end

Version data entries

3 entries across 3 versions & 3 rubygems

Version Path
vagrant-cloudstack-1.1.0 vendor/bundle/gems/wdm-0.1.0/ext/wdm/extconf.rb
vagrant-tiktalik-0.0.3 vendor/bundle/ruby/2.0.0/gems/wdm-0.1.0/ext/wdm/extconf.rb
wdm-0.1.0 ext/wdm/extconf.rb