mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-03 17:59:16 +00:00
ee36c66572
* fbt: doxygen target * github: adjustments for doxygen * github: always generate docs, only upload for dev * doxygen: fixed exclusion path for awesome-css * github: stricter check for push ref * github: bumped action version to fix node.js deprecation * github: added PVS report url to workflow summary * github: pvs: reworked report URL handling * github: added size report to summary * docs: added `doxygen` target * fbt: common naming scheme for COMSTR * Documentation: fix warnings and errors * Doxygen: stricter warning checks * fbt: "doxy" target, opens generated doxygen documentation in browser * github: doxygen: now using edge (1.10) version Co-authored-by: あく <alleteam@gmail.com>
40 lines
831 B
Python
40 lines
831 B
Python
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",
|
|
),
|
|
],
|
|
)
|
|
}
|
|
)
|