Class: Rscons::Builders::Disassemble

Inherits:
Rscons::Builder show all
Defined in:
lib/rscons/builders/disassemble.rb

Overview

The Disassemble builder produces a disassembly listing of a source file.

Instance Attribute Summary

Attributes inherited from Rscons::Builder

#build_step, #cache, #env, #preferred_ld, #side_effects, #sources, #target, #vars

Instance Method Summary collapse

Methods inherited from Rscons::Builder

#depends, extra_path, #finalize_command, #initialize, name, #name, #print_run_message, #produces, #register_command, #standard_command, #wait_for

Constructor Details

This class inherits a constructor from Rscons::Builder

Instance Method Details

#run(options) ⇒ Object

Run the builder to produce a build target.



7
8
9
10
11
12
13
14
15
# File 'lib/rscons/builders/disassemble.rb', line 7

def run(options)
  if @command
    finalize_command
  else
    @vars["_SOURCES"] = @sources
    command = @env.build_command("${DISASM_CMD}", @vars)
    standard_command("Disassembling <source>#{Util.short_format_paths(@sources)}<reset> => <target>#{target}<reset>", command, stdout: @target)
  end
end