mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-24 13:52:38 +03: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>
25 lines
953 B
Python
25 lines
953 B
Python
from ansi.color import fg
|
|
from fbt.util import link_dir
|
|
|
|
|
|
def link_elf_dir_as_latest(env, elf_node):
|
|
elf_dir = elf_node.Dir(".")
|
|
latest_dir = env.Dir("#build/latest")
|
|
print(fg.green(f"Linking {elf_dir} as latest built dir (./build/latest/)"))
|
|
return link_dir(latest_dir.abspath, elf_dir.abspath, env["PLATFORM"] == "win32")
|
|
|
|
|
|
def should_gen_cdb_and_link_dir(env, requested_targets):
|
|
explicitly_building_updater = False
|
|
# Hacky way to check if updater-related targets were requested
|
|
for build_target in requested_targets:
|
|
if "updater" in str(build_target) and "package" not in str(build_target):
|
|
explicitly_building_updater = True
|
|
|
|
is_updater = not env["IS_BASE_FIRMWARE"]
|
|
# If updater is explicitly requested, link to the latest updater
|
|
# Otherwise, link to firmware
|
|
return (is_updater and explicitly_building_updater) or (
|
|
not is_updater and not explicitly_building_updater
|
|
)
|