23 lines
584 B
Python
23 lines
584 B
Python
#
|
|
# SCons lamerpack building tester
|
|
#
|
|
# Version 1.1
|
|
# 18-Aug-2009
|
|
#
|
|
|
|
from SCons.Script import ARGUMENTS
|
|
|
|
def checkForLamerpack(conf):
|
|
"""Check command line arguments if user requested lamerpack build."""
|
|
conf.Message("Checking if we are building lamer pack... ")
|
|
buildlamer=ARGUMENTS.get('enable-lamerpack', 0)
|
|
try:
|
|
buildlamer2=int(buildlamer)
|
|
except ValueError:
|
|
buildlamer2=None
|
|
if buildlamer2 == 0 or str(buildlamer).lower() == 'no':
|
|
conf.Result(0)
|
|
else:
|
|
conf.env.Append(CPPFLAGS = '-DLAMERPACK')
|
|
conf.Result(1)
|