1# 2# SCons client commands build tester 3# 4# Version 1.0 5# 03-Sep-2009 6# 7 8from SCons.Script import ARGUMENTS 9 10def checkForBuildingClients(conf): 11 """Check command line arguments if user requested to not build client commands.""" 12 conf.Message("Checking if we are building client commands... ") 13 buildlamer=ARGUMENTS.get('without-clients', 0) 14 try: 15 buildlamer2=int(buildlamer) 16 except ValueError: 17 buildlamer2=None 18 if buildlamer2 == 1 or str(buildlamer).lower() == 'yes': 19 conf.Result(0) 20 return False 21 else: 22 conf.Result(1) 23 return True 24