Top Level Namespace
Instance Method Summary collapse
Instance Method Details
#append_manifest(extension_name) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'ext/win32olerot/extconf.rb', line 7 def append_manifest(extension_name) case CONFIG["target_os"] when "mswin32" File.open("Makefile", "a") << " # Add manifest for windows targets site-install: manifest-stamp install: manifest-stamp all: manifest-stamp manifest-stamp: $(DLLIB) mt -manifest $(DLLIB).manifest -outputresource:$(DLLIB);2 \ttouch $@ " else # no need for manifest step end end |
#create_win32olerot_makefile ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'ext/win32olerot/extconf.rb', line 29 def create_win32olerot_makefile if have_library("ole32") and have_library("oleaut32") and have_library("uuid") and have_library("user32") and have_library("kernel32") and have_library("advapi32") and have_header("windows.h") create_makefile("win32olerot") append_manifest("win32olerot") else ## TODO end end |