Class: Rscons::Builders::Size
- Inherits:
-
Rscons::Builder
- Object
- Rscons::Builder
- Rscons::Builders::Size
- Defined in:
- lib/rscons/builders/size.rb
Overview
Run the “size” utility on an executable and store its results in the target file. input file.
- Examples
-
env.Size(“^/project.size”, “^/project.elf”)
Instance Attribute Summary
Attributes inherited from Rscons::Builder
#build_step, #cache, #env, #preferred_ld, #side_effects, #sources, #target, #vars
Instance Method Summary collapse
-
#run(options) ⇒ Object
Run the builder to produce a build target.
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.
12 13 14 15 16 17 18 19 20 |
# File 'lib/rscons/builders/size.rb', line 12 def run() if @command finalize_command else @vars["_SOURCES"] = @sources command = @env.build_command("${SIZECMD}", @vars) standard_command("Size <source>#{Util.short_format_paths(@sources)}<reset> => <target>#{@target}<reset>", command, stdout: @target) end end |