Port webternet/curl to AMBuild 2 (
bug 5997 part 2, r=ds).
1 # vim: set ts=2 sw=2 tw=99 noet:
4 from ambuild2 import run
8 sys.stderr.write('It looks like you have AMBuild 1 installed, but this project uses AMBuild 2.\n')
9 sys.stderr.write('Upgrade to the latest version of AMBuild to continue.\n')
11 sys.stderr.write('AMBuild must be installed to build this project.\n')
12 sys.stderr.write('http://www.alliedmods.net/ambuild\n')
15 run = run.PrepareBuild(sourcePath=sys.path[0])
16 run.default_build_folder = 'obj-' + run.target_platform
17 run.options.add_option('--enable-debug', action='store_const', const='1', dest='debug',
18 help='Enable debugging symbols')
19 run.options.add_option('--enable-optimize', action='store_const', const='1', dest='opt',
20 help='Enable optimization')
21 run.options.add_option('--no-mysql', action='store_false', default=True, dest='hasMySql',
22 help='Disable building MySQL extension')
23 run.options.add_option('-s', '--sdks', default='all', dest='sdks',
24 help='Build against specified SDKs; valid args are "all", "present", or '
25 'comma-delimited list of engine names (default: %default)')