24 lines
591 B
Python
24 lines
591 B
Python
#
|
|
# SCons client commands build tester
|
|
#
|
|
# Version 1.0
|
|
# 03-Jun-2020
|
|
#
|
|
|
|
from SCons.Script import ARGUMENTS
|
|
|
|
def checkForBuildingServer(conf):
|
|
"""Check command line arguments if user requested to not build server."""
|
|
conf.Message("Checking if we are building client commands... ")
|
|
buildlamer=ARGUMENTS.get('without-server', 0)
|
|
try:
|
|
buildlamer2=int(buildlamer)
|
|
except ValueError:
|
|
buildlamer2=None
|
|
if buildlamer2 == 1 or str(buildlamer).lower() == 'yes':
|
|
conf.Result(0)
|
|
return False
|
|
else:
|
|
conf.Result(1)
|
|
return True
|