Parent

Binary

An executable binary file

Public Class Methods

new(options) click to toggle source
# File lib/makeconf/binary.rb, line 4
def initialize(options)
  raise ArgumentError unless options.kind_of?(Hash)
  super(options)
  @output = @id + Platform.executable_extension
  @output_type = 'binary'
end

Public Instance Methods

DEADWOOD_build() click to toggle source
# File lib/makeconf/binary.rb, line 19
  def DEADWOOD_build
    binfile = @id + Platform.executable_extension
    cc = @compiler
    cc.is_library = false
    cc.sources = @sources
    cc.output = binfile

#XXX-BROKEN cc.add_targets(@makefile)

    @makefile.merge!(cc.to_make(binfile))

    @makefile.clean(cc.objs)
    @makefile.install(binfile, '$(BINDIR)', { 'mode' => '755' })          if @installable
    @output.push binfile
    super()
  end
install(installer) click to toggle source
# File lib/makeconf/binary.rb, line 11
def install(installer)
  installer.install(
      :dest => '$(BINDIR)',
      :sources => @output,
      :mode => '0755')
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.