configure.py
author David Anderson <danderson@mozilla.com>
Tue Aug 27 00:49:33 2013 -0700 (2013-08-27)
changeset 12 cebfc7eeafa5
parent 11 cfe800908837
permissions -rw-r--r--
Added hash table tests.
danderson@11
     1
# vim: set ts=2 sw=2 tw=99 noet ft=python: 
danderson@11
     2
# 
danderson@11
     3
# Copyright (C) 2004-2012 David Anderson
danderson@11
     4
# 
danderson@11
     5
# This file is part of SourcePawn.
danderson@11
     6
# 
danderson@11
     7
# SourcePawn is free software: you can redistribute it and/or modify it under
danderson@11
     8
# the terms of the GNU General Public License as published by the Free
danderson@11
     9
# Software Foundation, either version 3 of the License, or (at your option)
danderson@11
    10
# any later version.
danderson@11
    11
# 
danderson@11
    12
# SourcePawn is distributed in the hope that it will be useful, but WITHOUT ANY
danderson@11
    13
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
danderson@11
    14
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
danderson@11
    15
# 
danderson@11
    16
# You should have received a copy of the GNU General Public License along with
danderson@11
    17
# SourcePawn. If not, see http://www.gnu.org/licenses/.
danderson@11
    18
#
danderson@11
    19
import sys
danderson@11
    20
import ambuild.runner as runner
danderson@11
    21
danderson@11
    22
run = runner.Runner()
danderson@11
    23
run.options.add_option('--enable-debug', action='store_const', const='1', dest='debug',
danderson@11
    24
                       help='Enable debugging symbols')
danderson@11
    25
run.options.add_option('--enable-optimize', action='store_const', const='1', dest='opt',
danderson@11
    26
                       help='Enable optimization')
danderson@11
    27
run.options.add_option('--arch', dest='arch', help='Architecture (x86, x64)')
danderson@11
    28
run.Configure(sys.path[0])