dvander@107: # vim: set ts=2 sw=2 tw=99 noet ft=python: dvander@107: # dvander@107: # Copyright (C) 2004-2012 David Anderson dvander@107: # dvander@107: # This file is part of SourcePawn. dvander@107: # dvander@107: # SourcePawn is free software: you can redistribute it and/or modify it under dvander@107: # the terms of the GNU General Public License as published by the Free dvander@107: # Software Foundation, either version 3 of the License, or (at your option) dvander@107: # any later version. dvander@107: # dvander@107: # SourcePawn is distributed in the hope that it will be useful, but WITHOUT ANY dvander@107: # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS dvander@107: # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. dvander@107: # dvander@107: # You should have received a copy of the GNU General Public License along with dvander@107: # SourcePawn. If not, see http://www.gnu.org/licenses/. dvander@107: # dvander@87: import sys dvander@87: import ambuild.runner as runner dvander@87: dvander@87: run = runner.Runner() dvander@87: run.options.add_option('--enable-debug', action='store_const', const='1', dest='debug', dvander@87: help='Enable debugging symbols') dvander@87: run.options.add_option('--enable-optimize', action='store_const', const='1', dest='opt', dvander@87: help='Enable optimization') dvander@87: run.options.add_option('--arch', dest='arch', help='Architecture (x86, x64)') dvander@87: run.Configure(sys.path[0])