diff options
Diffstat (limited to 'ext/win32ole/extconf.rb')
-rw-r--r-- | ext/win32ole/extconf.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ext/win32ole/extconf.rb b/ext/win32ole/extconf.rb index c989267733..de306d0578 100644 --- a/ext/win32ole/extconf.rb +++ b/ext/win32ole/extconf.rb @@ -6,6 +6,17 @@ require 'mkmf' dir_config("win32") + +SRCFILES=<<SRC +win32ole.c +SRC + +def create_docfile(src) + open(File.expand_path($srcdir) + "/.document", "w") {|ofs| + ofs.print src + } +end + def create_win32ole_makefile if have_library("ole32") and have_library("oleaut32") and @@ -15,9 +26,13 @@ def create_win32ole_makefile have_library("advapi32") and have_header("windows.h") create_makefile("win32ole") + create_docfile(SRCFILES) + else + create_docfile("") end end + case RUBY_PLATFORM when /mswin32/ $CFLAGS += ' /W3' |