mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-12 12:42:30 +04:00
fbt: doxygen target (#3510)
* 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>
This commit is contained in:
40
scripts/fbt_tools/doxygen.py
Normal file
40
scripts/fbt_tools/doxygen.py
Normal file
@@ -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",
|
||||
),
|
||||
],
|
||||
)
|
||||
}
|
||||
)
|
||||
Reference in New Issue
Block a user