diff options
Diffstat (limited to 'scripting')
-rw-r--r-- | scripting/SConscript | 7 |
1 files changed, 4 insertions, 3 deletions
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( |