1
0

bytebeat_compiler.py: make paths more native

This commit is contained in:
パチュリー・ノーレッジ 2024-01-02 18:13:28 +03:00
parent a192380d10
commit 8327678c44
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -8,8 +8,8 @@ import subprocess
# Paths # Paths
PATHS = { PATHS = {
"src_dir": "src/", "src_dir": "src",
"build_dir": "build/", "build_dir": "build",
"template": "template.c", "template": "template.c",
"substitute": "substituted.c", "substitute": "substituted.c",
"output": "render_bytebeat", "output": "render_bytebeat",
@ -21,8 +21,8 @@ PATHS = {
PATHS["template"] = path_join(PATHS["src_dir"], PATHS["template"]) PATHS["template"] = path_join(PATHS["src_dir"], PATHS["template"])
PATHS["substitute"] = path_join(PATHS["build_dir"], PATHS["substitute"]) PATHS["substitute"] = path_join(PATHS["build_dir"], PATHS["substitute"])
PATHS["output"] = path_join(PATHS["build_dir"], PATHS["output"]) PATHS["output"] = path_join(PATHS["build_dir"], PATHS["output"])
PATHS["fwrite_le_header"] = PATHS["src_dir"] + PATHS["fwrite_le_header"] PATHS["fwrite_le_header"] = PATHS["src_dir"] + "/" + PATHS["fwrite_le_header"]
PATHS["fwrite_le"] = PATHS["src_dir"] + PATHS["fwrite_le"] PATHS["fwrite_le"] = path_join(PATHS["src_dir"], PATHS["fwrite_le"])
# Add `.` directory before all paths for compilation # Add `.` directory before all paths for compilation
PATHS["template"] = path_join(".", PATHS["template"]) PATHS["template"] = path_join(".", PATHS["template"])