mirror of
https://github.com/zeldaret/af.git
synced 2026-09-26 05:31:51 -04:00
a10bb11ed6
* Makefile cleanup * venv * baseroms folder * Jenkinsfile * Remove z64compress * Small cleanup * More small fixes * diff_settings fix * Fix jenkins * make compress in readme
22 lines
780 B
Python
22 lines
780 B
Python
#!/usr/bin/env python3
|
|
|
|
from pathlib import Path
|
|
|
|
def apply(config, args):
|
|
version = "jp"
|
|
|
|
make_options = Path(".make_options")
|
|
if make_options.exists():
|
|
with make_options.open() as f:
|
|
for line in f:
|
|
if "VERSION" in line and "=" in line:
|
|
version = line.split("=")[1].strip()
|
|
|
|
config["baseimg"] = f"expected/build/animalforest-{version}.z64"
|
|
config["myimg"] = f"build/animalforest-{version}.z64"
|
|
config["mapfile"] = f"build/animalforest-{version}.map"
|
|
config["source_directories"] = ["./src", "./include", "./asm"]
|
|
config["objdump_flags"] = ["-Mreg-names=32"]
|
|
# config["objdump_flags"].append("-Mno-aliases")
|
|
config["makeflags"] = ["KEEP_MDEBUG=1", "WERROR=0", f"VERSION={version}"]
|