Module: Rake
- Defined in:
- lib/rake/extensiontask.rb,
lib/rake/rpmtask.rb,
lib/rake/autotoolstask.rb,
lib/rake/swigextensiontask.rb
Overview
Rake tasks to build Ruby extensions
Defined Under Namespace
Classes: AutoToolsRPMTask, ExtensionTask, RPMTask, SWIGExtensionTask
Constant Summary collapse
- MinSWIGVersion =
Create a build task that will generate a Ruby wrapper extension from SWIG interface definition(s). Requires SWIG version 1.3.30+.
See ExtensionTask for more information.
Example (from RDBXML):
# dbxml.i -> dbxml_wrap.cc -> dbxml_wrap.o -> dbxml.so Rake::SWIGExtensionTask.new :dbxml do |t| # keep it all under ext/ t.dir = 'ext' # dbxml.i includes dbxml_ruby.i so rebuild if it changes t.deps[:dbxml] << :dbxml_ruby # link in dbxml libraries t.link_libs += ['db', 'db_cxx', 'dbxml', 'xquery', 'xerces-c', 'pathan'] end
- Author
-
Steve Sloan ([email protected])
- Copyright
-
Copyright © 2006-2009 Steve Sloan
- License
-
MIT
%w/1 3 30/