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