mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2024-12-23 01:59:43 +08:00
11 lines
596 B
Python
11 lines
596 B
Python
|
import sys
|
||
|
from ambuild2 import run
|
||
|
|
||
|
parser = run.BuildParser(sourcePath = sys.path[0], api='2.2')
|
||
|
parser.options.add_argument('--enable-debug', action='store_const', const='1', dest='debug',
|
||
|
help='Enable debugging symbols')
|
||
|
parser.options.add_argument('--enable-optimize', action='store_const', const='1', dest='opt',
|
||
|
help='Enable optimization')
|
||
|
parser.options.add_argument('--targets', type=str, dest='targets', default=None,
|
||
|
help="Override the target architecture (use commas to separate multiple targets).")
|
||
|
parser.Configure()
|