mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-07-21 00:58:10 -07:00
Merge remote-tracking branch 'OFW/dev' into dev
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
from SCons.Script import Action, Builder
|
||||
|
||||
|
||||
def exists(env):
|
||||
return True
|
||||
|
||||
|
||||
def DoxyBuild(env, target, source, doxy_env_variables=None):
|
||||
if doxy_env_variables:
|
||||
doxy_env = env.Clone()
|
||||
doxy_env.Append(ENV=doxy_env_variables)
|
||||
else:
|
||||
doxy_env = env
|
||||
|
||||
return doxy_env._DoxyBuilder(target, source)
|
||||
|
||||
|
||||
def generate(env):
|
||||
if not env["VERBOSE"]:
|
||||
env.SetDefault(
|
||||
DOXYGENCOMSTR="\tDOXY\t${TARGET}",
|
||||
)
|
||||
|
||||
env.SetDefault(
|
||||
DOXYGEN="doxygen",
|
||||
)
|
||||
|
||||
env.AddMethod(DoxyBuild)
|
||||
env.Append(
|
||||
BUILDERS={
|
||||
"_DoxyBuilder": Builder(
|
||||
action=[
|
||||
Action(
|
||||
[["$DOXYGEN", "$SOURCE"]],
|
||||
"$DOXYGENCOMSTR",
|
||||
),
|
||||
],
|
||||
)
|
||||
}
|
||||
)
|
||||
@@ -32,7 +32,7 @@ def atexist_handler():
|
||||
|
||||
for bf in GetBuildFailures():
|
||||
for node in Flatten(bf.node):
|
||||
if node.exists and node.name.endswith(".html"):
|
||||
if node.exists and "pvs" in node.name and node.name.endswith(".html"):
|
||||
# macOS
|
||||
if sys.platform == "darwin":
|
||||
subprocess.run(["open", node.abspath])
|
||||
|
||||
Reference in New Issue
Block a user