From d1a668afd0e0b3fe096969aac9eb3096e9098907 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sat, 28 May 2011 22:08:33 +0200 Subject: Changed tolua build rules to avoid running tolua++ on every build. --- scripting/SConscript | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'scripting/SConscript') diff --git a/scripting/SConscript b/scripting/SConscript index eaf9f21..5fd10c7 100644 --- a/scripting/SConscript +++ b/scripting/SConscript @@ -2,11 +2,12 @@ Import('env') def tolua_generator(source, target, env, for_signature): name = str(source[0]).rsplit('/', 1)[-1].rsplit('.' , 1)[0] - return 'tolua++ -o %s -H %s -n %s %s' % (target[1], target[2], name, source[0]) + return 'tolua++ -o %s -H %s -n %s %s' % (target[0], target[1], name, source[0]) def tolua_emitter(target, source, env): - target.append('tolua_%s.cpp' % target[0]) - target.append('tolua_%s.h' % target[0]) + name = target.pop() + target.append('tolua_%s.cpp' % name) + target.append('tolua_%s.h' % name) return target, source tolua_bld = Builder( -- cgit v1.2.3