Changeset 2405 for pjproject/trunk/tests/cdash/cfg_msvc.py
- Timestamp:
- Jan 1, 2009 12:11:17 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/tests/cdash/cfg_msvc.py
r2404 r2405 24 24 # Each configurator must export this function 25 25 def create_builder(args): 26 # (optional) args format: 27 # [cfg_site] [--vs-config VSCFG] 28 # 29 # cfg_site: site configuration module. If not specified, "cfg_site" 30 # is implied 31 # VSCFG: Visual Studio build configuration to build. Sample values: 32 # "Debug|Win32", "Release|Win32". If not specified then 33 # "Release|Win32" is assumed 26 usage = """\ 27 Usage: 28 main.py cfg_msvc [-h|--help] [-t|--target TARGET] [cfg_site] 29 30 Arguments: 31 cfg_site: site configuration module. If not specified, "cfg_site" 32 is implied 33 -t,--target TARGET: Visual Studio build configuration to build. Default is 34 "Release|Win32". Sample values: "Debug|Win32" 35 -h, --help Show this help screen 36 37 """ 34 38 35 39 cfg_site = "cfg_site" 36 vs_cfg= "Release|Win32"40 target = "Release|Win32" 37 41 in_option = "" 38 42 39 43 for arg in args: 40 if in_option=="- -vs-config":41 vs_cfg= arg44 if in_option=="-t": 45 target = arg 42 46 in_option = "" 43 elif arg=="--vs-config": 44 in_option = arg 47 elif arg=="--target" or arg=="-t": 48 in_option = "-t" 49 elif arg=="-h" or arg=="--help": 50 print usage 51 sys.exit(0) 52 elif arg[0]=="-": 53 print usage 54 sys.exit(1) 45 55 else: 46 56 cfg_site = arg … … 59 69 builders = [ 60 70 builder.MSVCTestBuilder(test_cfg, 61 vs_config=vs_cfg,71 target=target, 62 72 build_config_name="default", 63 73 config_site="#define PJ_TODO(x)\n",
Note: See TracChangeset
for help on using the changeset viewer.