Skip to content

Commit

Permalink
Compiler output suppressed for examples building in non verbose mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mgoblin committed Dec 25, 2024
1 parent b41c9dd commit fb01291
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 8 deletions.
4 changes: 2 additions & 2 deletions VERSION_HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@
* Fix timer0_mode2_reload - TH0 value should be set, now used TL0
* Fix INT0 should be defined in timer0 modes
* timerX_modeX_direct_{reload, start}(TxH, TxL) for direct set TLx, THx registers implemented
* Does not recompile examples every time. Compile only when it changed.
* Does not recompile examples every time. Compile only when it changed
* Compiler output suppressed for examples building in non verbose mode

Next releases todo
* TODO Suppress compiler output for examples on non verbose build
* TODO Implement counters
* TODO Implement UART
* TODO Optimize timer2 baud rate calculation. Use precalculated array of baudrates
Expand Down
5 changes: 3 additions & 2 deletions compile_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

Import("env")

print("Add examples to build configuration")
print("Building examples")

env.SConscript('examples/SConstruct', exports = 'env')
#env.Execute(['cd examples ; scons ; rm -rf build'])

print("Build examples finished")
4 changes: 2 additions & 2 deletions docs/html/md_VERSION_HISTORY.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,10 @@
<li>Fix timer0_mode2_reload - TH0 value should be set, now used TL0</li>
<li>Fix INT0 should be defined in timer0 modes</li>
<li>timerX_modeX_direct_{reload, start}(TxH, TxL) for direct set TLx, THx registers implemented</li>
<li>Does not recompile examples every time. Compile only when it changed.</li>
<li>Does not recompile examples every time. Compile only when it changed</li>
<li>Compiler output suppressed for examples building in non verbose mode</li>
</ul>
<p >Next releases todo</p><ul>
<li>TODO Suppress compiler output for examples on non verbose build</li>
<li>TODO Implement counters</li>
<li>TODO Implement UART</li>
<li>TODO Optimize timer2 baud rate calculation. Use precalculated array of baudrates</li>
Expand Down
2 changes: 1 addition & 1 deletion doxygen.conf
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ CITE_BIB_FILES =
# messages are off.
# The default value is: NO.

QUIET = NO
QUIET = YES

# The WARNINGS tag can be used to turn on/off the warning messages that are
# generated to standard error (stderr) by doxygen. If WARNINGS is set to YES
Expand Down
4 changes: 4 additions & 0 deletions examples/SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ env.Append(
"-Iinclude"
]
)
verbose = int(ARGUMENTS.get('PIOVERBOSE', 0))

if verbose == 0:
env.SetOption('silent', 1)

base_dir = env.subst("$BUILD_DIR") + "/examples"

Expand Down
6 changes: 5 additions & 1 deletion examples/bits/SConscript
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
Import("env")

def pre_update_print(target, level, status, update, dependencies):
print("PreUpdate")

env.Default (
env.Object(
source = Glob('*.c'),
target = 'bits.rel'
target = 'bits.rel',
pre_update = pre_update_print
)
)

0 comments on commit fb01291

Please sign in to comment.