From 7a030409263841ddb75cdb2c528d293eb66aef19 Mon Sep 17 00:00:00 2001 From: "Max P." Date: Sat, 26 Apr 2025 13:54:24 +0200 Subject: [PATCH] Adds hdlbuild script for project configuration and source expansion Testfile --- src/hdlbuild.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/hdlbuild.py diff --git a/src/hdlbuild.py b/src/hdlbuild.py new file mode 100644 index 0000000..a692fa5 --- /dev/null +++ b/src/hdlbuild.py @@ -0,0 +1,17 @@ +from utils.directory_manager import clear_directories, ensure_directories_exist +from utils.project_loader import load_project_config +from utils.source_resolver import expand_sources + +project = load_project_config() + +print(project.name) +print(project.sources.vhdl) + +ensure_directories_exist() + +clear_directories() + +expanded_vhdl = expand_sources(project.sources.vhdl) + +for library, filepath in expanded_vhdl: + print(f"vhdl {library} \"{filepath}\"")