Files
oot-gc/diff_settings.py
cadmic 65e87efb32 Switch build system to use ninja and dtk and support multiple versions (#127)
* Start dtk project based on oot-gc-dtk

* Add asm_processor build rules

* Encode shift-JIS strings

* Generate build for all versions at the same time

* Update diff.py for new build layout

* Implement per-version object completion

* Add ce-u and match emu files

* Fix config/ce-j/build.sha1

* Add dol-diff, dol-apply, and format scripts

* Add configure.py --non-matching

* Delete old build system

* Reorganize library files

* Make diff.py multi-version but remove target line-number support

* Update README for new build system

* Change diff.py build command to ninja

* ./dol-apply ce-u

* Recommend ./diff.py -mwo3

* Upgrade to dtk v0.8.3, use block_relocations instead of noreloc

* Mark soundGCN.c as matched
2024-05-20 17:27:48 -07:00

14 lines
612 B
Python

def add_custom_arguments(parser):
parser.add_argument("-v", "--version", help="Emulator version to diff", default="ce-j")
def apply(config, args):
version = args.version
config["make_command"] = ["ninja"]
config["mapfile"] = f"build/{version}/oot-gc.elf.MAP"
config["source_directories"] = ["src", "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