From f702d92c5a748f4add982a740f6949cee8290105 Mon Sep 17 00:00:00 2001 From: Kp Date: Sun, 24 Feb 2013 00:54:51 +0000 Subject: [PATCH] Overload argument lookup to allow version-specific names --- SConstruct | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/SConstruct b/SConstruct index f300cb0f4..45ef47276 100644 --- a/SConstruct +++ b/SConstruct @@ -5,6 +5,15 @@ import sys import os import SCons.Util +class argumentIndirection: + def __init__(self,prefix): + self.prefix = prefix + self.ARGUMENTS = ARGUMENTS + def get(self,name,value): + return self.ARGUMENTS.get('%s_%s' % (self.prefix, name), self.ARGUMENTS.get(name,value)) + +ARGUMENTS = argumentIndirection('d2x') + PROGRAM_NAME = 'D2X-Rebirth' target = 'd2x-rebirth'