summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2011-05-28 22:08:33 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2011-05-28 22:08:33 +0200
commitd1a668afd0e0b3fe096969aac9eb3096e9098907 (patch)
treed2205a028b60be19017449559355eb5dee5d6530
parent6a02d4e2ac5b602febf96d8be792187d14375d9b (diff)
Changed tolua build rules to avoid running tolua++ on every build.
-rw-r--r--scripting/SConscript7
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(