mirror of
https://github.com/MonsterDruide1/OdysseyDecomp.git
synced 2024-11-23 13:29:49 +00:00
72b3d5cdce
Co-authored-by: leoetlino <leo@leolam.fr>
24 lines
732 B
Python
Executable File
24 lines
732 B
Python
Executable File
#!/usr/bin/env python3
|
|
from pathlib import Path
|
|
|
|
|
|
def apply(config, args):
|
|
config['arch'] = 'aarch64'
|
|
config['baseimg'] = 'data/main.elf'
|
|
config['myimg'] = 'build/odyssey'
|
|
config['source_directories'] = ['src', 'lib']
|
|
config['objdump_executable'] = 'tools/aarch64-none-elf-objdump'
|
|
|
|
for dir in ('build', 'build/nx64-release'):
|
|
if (Path(dir) / 'build.ninja').is_file():
|
|
config['make_command'] = ['ninja', '-C', dir]
|
|
|
|
|
|
def map_build_target(make_target: str):
|
|
if make_target == "build/odyssey":
|
|
return "odyssey"
|
|
|
|
# TODO: When support for directly diffing object files is added, this needs to strip
|
|
# the build/ prefix from the object file targets.
|
|
return make_target
|