Merge pull request #26220 from 78andyp/blurayfixes
[xbmc.git] / lib / libUPnP / Platinum / Build / Tools / Scripts / MakeAllVs.py
blob32f1bd05723395685ed4ff9bf816790a89553a12
1 #! /usr/bin/env python
3 import os
4 import sys
5 import getopt
6 import subprocess
9 configs = ['Debug', 'Release']
10 solutions = ['../../../Build/Targets/x86-microsoft-win32-vs2008/Platinum.sln']
12 try:
13 opts, args = getopt.getopt(sys.argv[1:], "b:rc")
14 except getopt.GetoptError, (msg, opt):
15 print 'No build_config, defaulting to build all'
17 for opt, arg in opts:
18 if opt == '-b':
19 config = arg
22 def CallVsMake(sln, cfg):
23 cmd = 'python VsMake.py -s %s -b %s' % (sln, cfg)
24 print cmd
25 retVal = subprocess.call(cmd.split())
26 if retVal != 0:
27 sys.exit(retVal)
29 for sln in solutions:
30 if 'config' not in locals() and 'config' not in globals():
31 print '************ Building all configurations **************'
32 for cfg in configs:
33 CallVsMake(sln, cfg)
34 else:
35 print '************ Building configuration=' + config + ' ****************'
36 CallVsMake(sln, config)