From 5f7f9051e37fa916f0079b9769e92b8dce507d7d Mon Sep 17 00:00:00 2001 From: "Magomed Kostoev (mkostoevr)" Date: Sun, 13 Jun 2021 08:52:33 +0000 Subject: [PATCH] [kernel][asmxygen.py] Configure behaviour using script arguments git-svn-id: svn://kolibrios.org@8837 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/asmxygen.py | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/kernel/trunk/asmxygen.py b/kernel/trunk/asmxygen.py index 23fd589f2d..23dcc4aa57 100644 --- a/kernel/trunk/asmxygen.py +++ b/kernel/trunk/asmxygen.py @@ -1,13 +1,32 @@ import re import os +import argparse # Parameters +# Path to doxygen folder to make doxygen files in: -o doxygen_src_path = 'docs/doxygen' -link_root = "http://websvn.kolibrios.org/filedetails.php?repname=Kolibri+OS&path=/kernel/trunk" -clean_generated_stuff = False # Remove generated doxygen files if True +# Remove generated doxygen files: --clean +clean_generated_stuff = False +# Dump all defined symbols: --dump dump_symbols = False +# Print symbol stats: --stats print_stats = False +# Constants +link_root = "http://websvn.kolibrios.org/filedetails.php?repname=Kolibri+OS&path=/kernel/trunk" + +# Parse arguments +parser = argparse.ArgumentParser() +parser.add_argument("-o", help="Doxygen output folder") +parser.add_argument("--clean", help="Remove generated files", action="store_true") +parser.add_argument("--dump", help="Dump all defined symbols", action="store_true") +parser.add_argument("--stats", help="Print symbol stats", action="store_true") +args = parser.parse_args() +doxygen_src_path = args.o if args.o else 'docs/doxygen' +clean_generated_stuff = args.clean +dump_symbols = args.dump +print_stats = args.stats + # kernel_structure["filename"] = { # [ [], # [0] Variables - [ line, name ] # [], # [1] Macros - [ line, name ]