Adds hdlbuild script for project configuration and source expansion

Testfile
This commit is contained in:
2025-04-26 13:54:24 +02:00
parent f0100234c9
commit 7a03040926

17
src/hdlbuild.py Normal file
View File

@@ -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}\"")