summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-04-09 09:10:03 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-04-09 09:10:03 (GMT)
commit88b134670019aa8a0290a30fc0d6ed65a8fd88ec (patch)
tree3ddb96091e9379880bff055e8e8004e17671a052 /BuildTools/SCons
parenta1d23719b2c39530045c92833585433cf2722e10 (diff)
downloadswift-88b134670019aa8a0290a30fc0d6ed65a8fd88ec.zip
swift-88b134670019aa8a0290a30fc0d6ed65a8fd88ec.tar.bz2
Fixed NSIS translation script dependency.
Diffstat (limited to 'BuildTools/SCons')
-rw-r--r--BuildTools/SCons/Tools/nsis.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/BuildTools/SCons/Tools/nsis.py b/BuildTools/SCons/Tools/nsis.py
index 567876d..f5b2905 100644
--- a/BuildTools/SCons/Tools/nsis.py
+++ b/BuildTools/SCons/Tools/nsis.py
@@ -1,6 +1,8 @@
import re, os
import SCons.Util
nsisFiles_re = re.compile(r'^\s*File "([^"]*)"', re.M)
+# FIXME
+nsisIncludes_re = re.compile(r'^\s*!include (translations-\S*)', re.M)
"""
TODO:
@@ -18,7 +20,7 @@ def generate(env) :
return os.path.join(*path.split("\\"))
def scanNsisContent(node, env, path, arg):
contents = node.get_contents()
- includes = nsisFiles_re.findall(contents)
+ includes = nsisFiles_re.findall(contents) + nsisIncludes_re.findall(contents)
includes = [ winToLocalReformat(include) for include in includes ]
return filter(lambda x: x.rfind('*')==-1, includes)
nsisscanner = env.Scanner(name = 'nsisfile',