2024-05-20 17:27:48 -07:00
|
|
|
def add_custom_arguments(parser):
|
|
|
|
|
parser.add_argument("-v", "--version", help="Emulator version to diff", default="ce-j")
|
|
|
|
|
|
2024-02-10 16:20:40 -08:00
|
|
|
def apply(config, args):
|
2024-05-20 17:27:48 -07:00
|
|
|
version = args.version
|
|
|
|
|
config["make_command"] = ["ninja"]
|
|
|
|
|
config["mapfile"] = f"build/{version}/oot-gc.elf.MAP"
|
2024-02-10 16:20:40 -08:00
|
|
|
config["source_directories"] = ["src", "include"]
|
|
|
|
|
config["arch"] = "ppc"
|
|
|
|
|
config["map_format"] = "mw" # gnu, mw, ms
|
2024-05-20 17:27:48 -07:00
|
|
|
config["build_dir"] = f"build/{version}/src" # only needed for mw and ms map formats
|
|
|
|
|
config["objdump_executable"] = "build/binutils/powerpc-eabi-objdump"
|
2024-02-13 17:34:41 -08:00
|
|
|
config["show_line_numbers_default"] = True
|