commit
1b21fd0622
1 changed files with 25 additions and 4 deletions
29
configure.py
29
configure.py
|
|
@ -55,6 +55,12 @@ parser.add_argument(
|
||||||
default=Path("build"),
|
default=Path("build"),
|
||||||
help="base build directory (default: build)",
|
help="base build directory (default: build)",
|
||||||
)
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"--binutils",
|
||||||
|
metavar="BINARY",
|
||||||
|
type=Path,
|
||||||
|
help="path to binutils (optional)",
|
||||||
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--compilers",
|
"--compilers",
|
||||||
dest="compilers",
|
dest="compilers",
|
||||||
|
|
@ -67,6 +73,11 @@ parser.add_argument(
|
||||||
action="store_true",
|
action="store_true",
|
||||||
help="generate map file(s)",
|
help="generate map file(s)",
|
||||||
)
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"--no-asm",
|
||||||
|
action="store_true",
|
||||||
|
help="don't incorporate .s files from asm directory",
|
||||||
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--debug",
|
"--debug",
|
||||||
dest="debug",
|
dest="debug",
|
||||||
|
|
@ -81,10 +92,10 @@ if not is_windows():
|
||||||
help="path to wibo or wine (optional)",
|
help="path to wibo or wine (optional)",
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--build-dtk",
|
"--dtk",
|
||||||
dest="build_dtk",
|
metavar="BINARY | DIR",
|
||||||
type=Path,
|
type=Path,
|
||||||
help="path to decomp-toolkit source (optional)",
|
help="path to decomp-toolkit binary or source (optional)",
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--sjiswrap",
|
"--sjiswrap",
|
||||||
|
|
@ -98,6 +109,12 @@ parser.add_argument(
|
||||||
action="store_true",
|
action="store_true",
|
||||||
help="print verbose output",
|
help="print verbose output",
|
||||||
)
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"--non-matching",
|
||||||
|
dest="non_matching",
|
||||||
|
action="store_true",
|
||||||
|
help="builds equivalent (but non-matching) or modded objects",
|
||||||
|
)
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
config = ProjectConfig()
|
config = ProjectConfig()
|
||||||
|
|
@ -108,13 +125,17 @@ version_num = VERSIONS.index(config.version)
|
||||||
|
|
||||||
# Apply arguments
|
# Apply arguments
|
||||||
config.build_dir = args.build_dir
|
config.build_dir = args.build_dir
|
||||||
config.build_dtk_path = args.build_dtk
|
config.dtk_path = args.dtk
|
||||||
|
config.binutils_path = args.binutils
|
||||||
config.compilers_path = args.compilers
|
config.compilers_path = args.compilers
|
||||||
config.debug = args.debug
|
config.debug = args.debug
|
||||||
config.generate_map = args.map
|
config.generate_map = args.map
|
||||||
|
config.non_matching = args.non_matching
|
||||||
config.sjiswrap_path = args.sjiswrap
|
config.sjiswrap_path = args.sjiswrap
|
||||||
if not is_windows():
|
if not is_windows():
|
||||||
config.wrapper = args.wrapper
|
config.wrapper = args.wrapper
|
||||||
|
if args.no_asm:
|
||||||
|
config.asm_dir = None
|
||||||
|
|
||||||
# Tool versions
|
# Tool versions
|
||||||
config.binutils_tag = "2.42-1"
|
config.binutils_tag = "2.42-1"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue