ext/win32ole/extconf.rb


DEFINITIONS

This source file includes following functions.


   1  #----------------------------------
   2  # extconf.rb
   3  # $Revision: 1.2 $
   4  # $Date: 2002/06/03 11:44:08 $
   5  #----------------------------------
   6  require 'mkmf'
   7  
   8  def create_win32ole_makefile
   9    if have_library("ole32") and
  10       have_library("oleaut32") and
  11       have_library("uuid") and 
  12       have_library("user32") and
  13       have_library("advapi32")
  14      create_makefile("win32ole")
  15    end
  16  end
  17  
  18  case RUBY_PLATFORM
  19  when /mswin32/
  20    $CFLAGS='/W3'
  21  when /mingw/
  22    $CFLAGS='-DNONAMELESSUNION'
  23  when /cygwin/
  24    $CFLAGS='-DNONAMELESSUNION'
  25  end
  26  create_win32ole_makefile