configure.py 1.3 KB

12345678910111213141516171819202122232425
  1. # vim: set sts=2 ts=8 sw=2 tw=99 et:
  2. import sys
  3. from ambuild2 import run
  4. # Simple extensions do not need to modify this file.
  5. builder = run.PrepareBuild(sourcePath = sys.path[0])
  6. builder.options.add_option('--hl2sdk-root', type=str, dest='hl2sdk_root', default=None,
  7. help='Root search folder for HL2SDKs')
  8. builder.options.add_option('--mms-path', type=str, dest='mms_path', default=None,
  9. help='Path to Metamod:Source')
  10. builder.options.add_option('--sm-path', type=str, dest='sm_path', default=None,
  11. help='Path to SourceMod')
  12. builder.options.add_option('--enable-debug', action='store_const', const='1', dest='debug',
  13. help='Enable debugging symbols')
  14. builder.options.add_option('--enable-optimize', action='store_const', const='1', dest='opt',
  15. help='Enable optimization')
  16. builder.options.add_option('-s', '--sdks', default='all', dest='sdks',
  17. help='Build against specified SDKs; valid args are "all", "present", or '
  18. 'comma-delimited list of engine names (default: %default)')
  19. builder.options.add_option('--spcomp-path', type=str, dest='spcomp_path', default=None,
  20. help='Path to directory containing spcomp')
  21. builder.Configure()