Add Size builder - close #143
This commit is contained in:
1 parent
a316c4f922
commit
610b8f1266
6 files changed
+65
No files matched your search
@@ -625,6 +625,7 @@ There are several default builders that are built-in to Rscons:
|
||||
library.
|
||||
* `SharedObject`, which compiles source files to produce an object file, in a
|
||||
way that is able to be used to create a shared library.
|
||||
* `Size`, which runs the 'size' utility on an executable file.
|
||||
|
||||
####> The Command Builder
|
||||
|
||||
@@ -840,6 +841,20 @@ allows it to be used to create a shared library are added.
|
||||
Although it can be called explicitly, it is more commonly implicitly called by
|
||||
the `SharedLibrary` builder.
|
||||
|
||||
####> The Size Builder
|
||||
|
||||
```ruby
|
||||
env.Size(target, sources)
|
||||
# Example
|
||||
env.Program("program.exe", glob("*.c"))
|
||||
env.Size("program.size", "program.exe")
|
||||
```
|
||||
|
||||
The `Size` builder runs the "size" executable on the given source file and
|
||||
stores its output in the target file.
|
||||
The size executable can be specified with the `SIZE` construction variable,
|
||||
and flags can be specified with `SIZEFLAGS`.
|
||||
|
||||
###> Phony Targets
|
||||
|
||||
rscons supports phony build targets.
|
||||
|
||||
Reference in new issue
Block a user