Sha256: ed67c358551d1f6c4f9d4b035457c319db4ea9ccb95c646a3c720fe1a1b30da3

Contents?: true

Size: 615 Bytes

Versions: 1

Compression:

Stored size: 615 Bytes

Contents

require 'mkmf'
require 'rbconfig'

extension_name = 'tmailscanner'

arch = Config::CONFIG['sitearch']

windows = (/djgpp|(cyg|ms|bcc)win|mingw/ =~ arch)

# For now use pure Ruby tmailscanner if on Windows, since 
# most Window's users don't have developer tools needed.
ENV['NORUBYEXT'] = true if windows

if (ENV['NORUBYEXT'] == 'true')
  File.open('Makefile', 'w') do |f|
    f << "all:\n"
    f << "install:\n"
  end
else
  #dir_config(extension_name)
  if windows && ENV['make'].nil?
    $LIBS += " msvcprt.lib"
  else
    $CFLAGS += " -D_FILE_OFFSET_BITS=64"  #???
  end
  create_makefile(extension_name)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tmail-1.2.3 ext/tmailscanner/tmail/extconf.rb