diff --git a/configure.py b/configure.py index c9ce69b..05d27ad 100644 --- a/configure.py +++ b/configure.py @@ -33,6 +33,8 @@ parser = argparse.ArgumentParser('Configures the project.') parser.add_argument('--spcomp-dir', help = 'Directory with the SourcePawn compiler. Will check PATH if not specified.') +parser.add_argument('--build-dir', + help = 'Directory to put build files. Will be ./build if not specified.') args = parser.parse_args() @@ -60,7 +62,7 @@ vars = { 'configure_args': sys.argv[1:], 'root': '.', - 'builddir': 'build', + 'builddir': args.build_dir or 'build', 'spcomp': spcomp, 'spcflags': [ '-i${root}/scripting/include', '-h', '-v0' ] }