rake/swigextensiontask.rb
# An Array of interface filenames (Symbol or String) to build and link into
# the extension.
An Array of interface filenames (Symbol or String) to build and link into
the extension.
An Array of interface filenames ( Symbol or String ) to build and link into the extension .
def define_tasks
      for iface in @ifaces
        deps = @deps[iface]
        iface = filepath(iface, :swigext)
        src = iface.sub(/\.#{env[:swigext]}$/, env[:swig_cppext])
        deps = [deps]  unless deps.kind_of? Enumerable
        if deps and deps.any?
          file src => deps.collect { |dep| filepath(dep, :swigext) } << iface
        end
        CLEAN.include src
        @objs << src.sub(/\.[^.]+$/, '.'+env[:objext])
      end
      super
    end
def define_tasks for iface in @ifaces deps = @deps [ iface ] iface = filepath ( iface , :swigext ) src = iface . sub ( / \. #{ env [ :swigext ] } $ / , env [ :swig_cppext ] ) deps = [ deps ] unless deps . kind_of? Enumerable if deps and deps . any? file src => deps . collect { | dep | filepath ( dep , :swigext ) } << iface end CLEAN . include src @objs << src . sub ( / \. [^.]+$ / , '.' + env [ :objext ] ) end super end
An Array of interface filenames (Symbol or String) to build and link into
the extension.
An Array of interface filenames ( Symbol or String ) to build and link into the extension .