2024-08-27 19:47:37 +02:00
|
|
|
def add_custom_arguments(parser):
|
2024-08-27 20:12:32 +02:00
|
|
|
parser.add_argument("-v", "--version", help="Emulator version to diff", default="oot-j")
|
2024-08-27 19:47:37 +02:00
|
|
|
|
|
|
|
|
def apply(config, args):
|
|
|
|
|
version = args.version
|
|
|
|
|
config["make_command"] = ["ninja"]
|
|
|
|
|
config["mapfile"] = f"build/{version}/oot-vc.elf.MAP"
|
|
|
|
|
config["source_directories"] = ["src", "include", "libc", f"build/{version}/include"]
|
|
|
|
|
config["arch"] = "ppc"
|
|
|
|
|
config["map_format"] = "mw" # gnu, mw, ms
|
|
|
|
|
config["build_dir"] = f"build/{version}/src" # only needed for mw and ms map formats
|
|
|
|
|
config["objdump_executable"] = "build/binutils/powerpc-eabi-objdump"
|
|
|
|
|
config["show_line_numbers_default"] = True
|