bin2array to dynamically create C array on build

This commit is contained in:
iranl
2025-07-06 21:02:43 +02:00
parent aaa22640cc
commit 1bde4cca4b
35 changed files with 2890 additions and 932 deletions

View File

@@ -10,6 +10,10 @@ def recursive_purge(dir, pattern):
elif re.search(pattern, os.path.join(dir, f)):
os.remove(os.path.join(dir, f))
os.system("python ../resources/bin2array/bin2array.py ../icon/favicon-32x32.png -O ../src/webServerConstants/favicon-32x32.h -l 16")
os.system("python ../resources/bin2array/bin2array.py ../resources/style.css -O ../src/webServerConstants/style.h -l 16")
os.system("python ../resources/bin2array/bin2array.py ../resources/AsyncWebSerial/frontend/index.html -O ../src/webServerConstants/webSerial.h -l 16")
if os.path.exists("src/Config.h"):
with open("../src/Config.h", "rb") as file_a, open("src/Config.h", "rb") as file_b:
if file_a.read() != file_b.read():